Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'qa/qa/vendor/github/page/login.rb')
-rw-r--r--qa/qa/vendor/github/page/login.rb11
1 files changed, 7 insertions, 4 deletions
diff --git a/qa/qa/vendor/github/page/login.rb b/qa/qa/vendor/github/page/login.rb
index 17a7471e251..ce71fc5f11e 100644
--- a/qa/qa/vendor/github/page/login.rb
+++ b/qa/qa/vendor/github/page/login.rb
@@ -1,13 +1,10 @@
# frozen_string_literal: true
-require 'capybara/dsl'
-require 'benchmark'
-
module QA
module Vendor
module Github
module Page
- class Login < Page::Base
+ class Login < Vendor::Page::Base
def login
fill_in 'login', with: QA::Runtime::Env.github_username
fill_in 'password', with: QA::Runtime::Env.github_password
@@ -24,11 +21,17 @@ module QA
end
authorize_app
+
+ confirm_account_recovery_settings
end
def authorize_app
click_on 'Authorize' if has_button?('Authorize')
end
+
+ def confirm_account_recovery_settings
+ click_on 'Confirm' if has_button?('Confirm')
+ end
end
end
end