Skip to content

Commit aacf67f

Browse files
Fix broken tests
Issues ------ - Closes #45
1 parent 313181a commit aacf67f

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

lib/generators/rails_mvp_authentication/templates/test/integration/user_interface_test.rb.tt

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,12 @@ class UserInterfaceTest < ActionDispatch::IntegrationTest
1919
login @confirmed_user
2020

2121
get account_path
22-
23-
assert_select "input[type='submit']" do
24-
assert_select "[value=?]", "Log out of all other sessions"
25-
end
22+
23+
assert_select "button", "Log out of all other sessions"
2624
assert_match destroy_all_active_sessions_path, @response.body
2725

2826
assert_select "table" do
29-
assert_select "input[type='submit']" do
30-
assert_select "[value=?]", "Sign Out"
31-
end
27+
assert_select "button", "Sign Out"
3228
end
3329
assert_match active_session_path(@confirmed_user.active_sessions.last), @response.body
3430
end

lib/generators/rails_mvp_authentication/templates/test/system/logins_test.rb.tt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ class LoginsTest < ApplicationSystemTestCase
1111
fill_in "Email", with: @confirmed_user.email
1212
fill_in "Password", with: @confirmed_user.password
1313
click_on "Sign In"
14+
15+
sleep 0.1
1416

1517
assert_not_nil @confirmed_user.active_sessions.last.user_agent
1618
assert_not_nil @confirmed_user.active_sessions.last.ip_address

0 commit comments

Comments
 (0)