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
path: root/qa
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-12-02 21:09:35 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-12-02 21:09:35 +0300
commitad05e1db038a2e983d25555144fa29063e060c50 (patch)
tree36f9c8b4d1d300b69e00c14793303c10cd020f2a /qa
parent1bdf79827c623cc92504223a1085f366115bbb3d (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'qa')
-rw-r--r--qa/qa/flow/sign_up.rb15
-rw-r--r--qa/qa/page/registration/welcome.rb7
-rw-r--r--qa/qa/specs/features/browser_ui/1_manage/login/register_spec.rb1
3 files changed, 15 insertions, 8 deletions
diff --git a/qa/qa/flow/sign_up.rb b/qa/qa/flow/sign_up.rb
index 7dc1bf2a455..c790a82d904 100644
--- a/qa/qa/flow/sign_up.rb
+++ b/qa/qa/flow/sign_up.rb
@@ -15,16 +15,17 @@ module QA
sign_up.fill_new_user_username_field(user.username)
sign_up.fill_new_user_email_field(user.email)
sign_up.fill_new_user_password_field(user.password)
+
+ # Because invisible_captcha would prevent submitting this form
+ # within 4 seconds, sleep here. This can be removed once we
+ # implement invisible_captcha as an application setting instead
+ # of a feature flag, so we can turn it off while testing.
+ # Issue: https://gitlab.com/gitlab-org/gitlab/-/issues/284113
+ sleep 5
+
sign_up.click_new_user_register_button
end
- # Because invisible_captcha would prevent submitting this form
- # within 4 seconds, sleep here. This can be removed once we
- # implement invisible_captcha as an application setting instead
- # of a feature flag, so we can turn it off while testing.
- # Issue: https://gitlab.com/gitlab-org/gitlab/-/issues/284113
- sleep 4
-
Page::Registration::Welcome.perform(&:click_get_started_button_if_available)
if user.expect_fabrication_success
diff --git a/qa/qa/page/registration/welcome.rb b/qa/qa/page/registration/welcome.rb
index 32808176eff..394e94b6414 100644
--- a/qa/qa/page/registration/welcome.rb
+++ b/qa/qa/page/registration/welcome.rb
@@ -9,7 +9,12 @@ module QA
end
def click_get_started_button_if_available
- click_element :get_started_button if has_element?(:get_started_button)
+ if has_element?(:get_started_button)
+ Support::Retrier.retry_until do
+ click_element :get_started_button
+ has_no_element?(:get_started_button)
+ end
+ end
end
end
end
diff --git a/qa/qa/specs/features/browser_ui/1_manage/login/register_spec.rb b/qa/qa/specs/features/browser_ui/1_manage/login/register_spec.rb
index f18dedf1359..d58857f6da2 100644
--- a/qa/qa/specs/features/browser_ui/1_manage/login/register_spec.rb
+++ b/qa/qa/specs/features/browser_ui/1_manage/login/register_spec.rb
@@ -122,6 +122,7 @@ module QA
end
after do
+ set_require_admin_approval_after_user_signup_via_api(false)
@user.remove_via_api! if @user
end
end