File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed
lib/generators/rails_mvp_authentication/templates/test Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments