diff options
author | Nick Thomas <nick@gitlab.com> | 2018-10-16 15:47:32 +0000 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2018-10-16 15:47:32 +0000 |
commit | aeaf6686df0dabd211221b1158586136707f3bdf (patch) | |
tree | 35e3bfceea86013311b8eb32df2075142cfa437b /qa | |
parent | 8131b64ae842cf304b049bb248560245a99bc26a (diff) | |
parent | 2b3dab6f837b28ce4fd741d0e3e100e3a6a6e98a (diff) | |
download | gitlab-ce-aeaf6686df0dabd211221b1158586136707f3bdf.tar.gz |
Merge branch 'qa-handle-sign-up-with-terms' into 'master'
[QA] Handle sign-up when terms must be accepted
See merge request gitlab-org/gitlab-ce!22374
Diffstat (limited to 'qa')
-rw-r--r-- | qa/qa/page/main/sign_up.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/qa/qa/page/main/sign_up.rb b/qa/qa/page/main/sign_up.rb index b33ea03fc55..9ca498012eb 100644 --- a/qa/qa/page/main/sign_up.rb +++ b/qa/qa/page/main/sign_up.rb @@ -11,6 +11,7 @@ module QA element :new_user_email_confirmation element :new_user_password element :new_user_register_button + element :new_user_accept_terms end def sign_up!(user) @@ -20,6 +21,8 @@ module QA fill_element :new_user_email_confirmation, user.email fill_element :new_user_password, user.password + check_element :new_user_accept_terms if has_element?(:new_user_accept_terms) + signed_in = with_retry do click_element :new_user_register_button |