Skip to content

Commit

Permalink
Try expecting first for timing
Browse files Browse the repository at this point in the history
  • Loading branch information
taylor-steve committed Jan 30, 2024
1 parent 194c5c4 commit 1b00119
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions spec/features/in_document_search_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +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')
page.find('input')

# input is populated with the search term
page.find('input[value="justice"]')
# 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 1b00119

Please sign in to comment.