GitLab wird am Donnerstag, den 27. Januar, zwischen 08:00 und 12:00 Uhr wegen wichtigen Wartungsarbeiten nicht zur Verfügung stehen.

Commit b7846937 authored by Robert Speicher's avatar Robert Speicher
Browse files

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.
parent 7fa0a3e7
......@@ -19,15 +19,17 @@ def initialize
end
def sign_in_using_credentials
if page.has_content?('Change your password')
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
fill_in :user_password_confirmation, with: Runtime::User.password
click_button 'Change your password'
click_button 'Sign in'
end
fill_in :user_login, with: Runtime::User.name
fill_in :user_password, with: Runtime::User.password
click_button 'Sign in'
end
def self.path
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment