Skip to content

Commit d87fed1

Browse files
committed
use matcher that obeys wait time
1 parent 6822e7e commit d87fed1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/browser/restricted_area_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
fill_in 'Email', with: admin.email
1111
fill_in 'Password', with: admin.password
1212
click_link_or_button 'Log in'
13-
expect(page.body).to match 'Sidekiq'
13+
expect(page).to have_content("Sidekiq")
1414
end
1515

1616
it 'swagger cannot be accessed without logging in' do
1717
visit('/swagger')
1818
fill_in 'Email', with: admin.email
1919
fill_in 'Password', with: admin.password
2020
click_link_or_button 'Log in'
21-
expect(page.body).to match 'Swagger'
21+
expect(page).to have_content("Swagger")
2222
end
2323
end

0 commit comments

Comments
 (0)