Remove the wait time for the login form check

The "Change your password" text is either on the page or it isn't.
There's no benefit to using Capybara's default waiting behavior here, as
it will never load in via AJAX, for example.
This commit is contained in:
Robert Speicher 2018-01-19 16:00:48 -06:00
parent 7fa0a3e777
commit b784693759
1 changed files with 10 additions and 8 deletions

View File

@ -19,15 +19,17 @@ module QA
end
def sign_in_using_credentials
if page.has_content?('Change your password')
fill_in :user_password, with: Runtime::User.password
fill_in :user_password_confirmation, with: Runtime::User.password
click_button 'Change your password'
end
using_wait_time 0 do
if page.has_content?('Change your password')
fill_in :user_password, with: Runtime::User.password
fill_in :user_password_confirmation, with: Runtime::User.password
click_button 'Change your password'
end
fill_in :user_login, with: Runtime::User.name
fill_in :user_password, with: Runtime::User.password
click_button 'Sign in'
fill_in :user_login, with: Runtime::User.name
fill_in :user_password, with: Runtime::User.password
click_button 'Sign in'
end
end
def self.path