Skip to content

Commit

Permalink
Remove capybara default_wait_time
Browse files Browse the repository at this point in the history
Create accessible icons context
Update record id
  • Loading branch information
christinach committed Jan 4, 2023
1 parent e27e1a4 commit 8776402
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
22 changes: 12 additions & 10 deletions spec/features/browsing_item_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,20 @@

describe 'browsing a catalog item', js: true do
before do
stub_holding_locations
stub_alma_holding_locations
end

it 'renders an accessible icon for citing the item' do
visit 'catalog/9934788983506421'
expect(page).to have_selector('.icon-cite[aria-hidden="true"]')
end

it 'renders an accessible icon for sending items to a printer' do
visit 'catalog/9934788983506421'
expect(page).to have_selector('.icon-share[aria-hidden="true"]')
expect(page).to have_selector('.icon-print[aria-hidden="true"]', visible: :hidden)
context 'accessible icons' do
before do
visit 'catalog/99125535710106421'
end
it 'renders an accessible icon for citing the item' do
expect(page).to have_selector('span.icon-cite[aria-hidden="true"]')
end
it 'renders an accessible icon for sending items to a printer' do
expect(page).to have_selector('span.icon-share[aria-hidden="true"]')
expect(page).to have_selector('span.icon-print[aria-hidden="true"]', visible: :hidden)
end
end

context 'when an entry has a bib. ID for a resource published in Figgy', skip: true do
Expand Down
1 change: 0 additions & 1 deletion spec/support/capybara_selenium.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,3 @@
end

Capybara.javascript_driver = :selenium
Capybara.default_max_wait_time = 15

0 comments on commit 8776402

Please sign in to comment.