Skip to content

Commit

Permalink
Test if expect works better
Browse files Browse the repository at this point in the history
  • Loading branch information
taylor-steve committed Jan 30, 2024
1 parent 1b00119 commit 2dd7e51
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions spec/features/in_document_search_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@

# iframe containing sul-embed/mirador viewer
within_frame do
# buttons are present
expect(page.find('h3')).to have_text 'Search'
expect(page.find('h3')).to have_text 'clear'

# sidebar is open
page.find('.mirador-companion-area-left')

# input is populated with the search term
page.find('input[value="justice"]')
expect(page).to have_selector('input[value="justice"]', wait: 10)

# buttons are present
expect(page.find('h3')).to have_text 'Search'
expect(page.find('h3')).to have_text 'clear'
end
end
end

0 comments on commit 2dd7e51

Please sign in to comment.