We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c8119be commit 974166fCopy full SHA for 974166f
1 file changed
spec/search_spec.rb
@@ -38,9 +38,11 @@ def generate_test_object
38
scenario 'empty search shows all results' do
39
visit '/'
40
click_button 'Search'
41
- expect(page).to have_content(
42
- 'Search results for immigration records Last Name First Name Middle Name Age Gender Port Date Ship Destination'
43
- ).and have_css('table#table tbody tr')
+ expect(page).to satisfy do |current_page|
+ current_page.has_content?(
+ 'Search results for immigration records Last Name First Name Middle Name Age Gender Port Date Ship Destination'
44
+ ) && current_page.has_css?('table#table tbody tr')
45
+ end
46
end
47
48
scenario 'Search query yields intended results' do
0 commit comments