-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e5ab857
commit c955718
Showing
9 changed files
with
121 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
require 'spec_helper' | ||
|
||
include CommonwealthVlrEngine::CollectionsHelperBehavior | ||
|
||
# set this helper to return true so AZ links are rendered | ||
def should_render_col_az? | ||
true | ||
end | ||
|
||
describe 'collections a-z links' do | ||
|
||
it 'should show the a-z links' do | ||
visit collections_path | ||
within ('#collection_az_links') do | ||
expect(page).to have_selector('.col_a-z_link') | ||
end | ||
end | ||
|
||
it 'should show correct results after clicking a letter link' do | ||
visit collections_path | ||
within ('#collection_az_links') do | ||
click_link('C') | ||
end | ||
expect(page).to have_selector('.document-title-heading', :text => 'Carte de Visite Collection') | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
require 'spec_helper' | ||
|
||
describe 'openseadragon image viewer modal' do | ||
|
||
it 'should display the OSd viewer modal when the image is clicked', :js => true do | ||
visit solr_document_path(:id => 'bpl-dev:h702q6403') | ||
click_link('img_viewer_link') | ||
expect(page).to have_selector('.openseadragon-container') | ||
end | ||
|
||
end | ||
|
||
describe 'multi image viewer' do | ||
|
||
before(:each) do | ||
visit solr_document_path(:id => 'bpl-dev:h702q6403') | ||
click_link('carousel-nav_next') | ||
end | ||
|
||
it 'should display the next image when a prev-next link is clicked' do | ||
expect(find('.img_show')['src']).to match /bpl-dev:h702q642n/ | ||
end | ||
|
||
it 'should update the thumbnail in the #thumbnail_list' do | ||
expect(all('#thumbnail_list li').last).to have_selector('.in_viewer') | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
require 'spec_helper' | ||
|
||
describe 'Institutions#index map view', js: true do | ||
|
||
before { visit institutions_path(:view => 'maps') } | ||
|
||
it 'should show map marker' do | ||
within ('#institutions-index-map') do | ||
expect(page).to have_selector('.leaflet-marker-icon') | ||
end | ||
end | ||
|
||
describe 'click marker cluster' do | ||
|
||
before { find('div.leaflet-marker-icon').click } | ||
|
||
it 'should show the search_form_institution content' do | ||
within ('div.leaflet-popup-content') do | ||
expect(page.text).to include('institution') | ||
end | ||
end | ||
|
||
describe 'constraints links' do | ||
|
||
before { find('div.leaflet-popup-content a').click } | ||
|
||
it 'should have .constraints > a.remove that links to instititions#index' do | ||
within ('#appliedParams') do | ||
expect(page.html).to include('/institutions?') | ||
end | ||
|
||
end | ||
|
||
end | ||
|
||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters