Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
319793b8
Commit
319793b8
authored
Sep 11, 2020
by
Sanad Liaquat (Personal)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix user registration e2e spec
parent
c76e1261
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
ee/app/views/registrations/welcome/_button.html.haml
ee/app/views/registrations/welcome/_button.html.haml
+1
-1
qa/qa/page/main/sign_up.rb
qa/qa/page/main/sign_up.rb
+7
-1
No files found.
ee/app/views/registrations/welcome/_button.html.haml
View file @
319793b8
-
onboarding_issues_experiment_enabled
=
experiment_enabled?
(
:onboarding_issues
)
=
button_tag
class:
%w[btn btn-success w-100]
do
=
button_tag
class:
%w[btn btn-success w-100]
,
data:
{
qa_selector:
'get_started_button'
}
do
=
in_subscription_flow?
||
in_trial_flow?
||
(
onboarding_issues_experiment_enabled
&&
!
in_invitation_flow?
&&
!
in_oauth_flow?
)
?
_
(
'Continue'
)
:
_
(
'Get started!'
)
qa/qa/page/main/sign_up.rb
View file @
319793b8
...
...
@@ -14,6 +14,10 @@ module QA
element
:new_user_accept_terms_checkbox
end
view
'ee/app/views/registrations/welcome/_button.html.haml'
do
element
:get_started_button
end
def
sign_up!
(
user
)
fill_element
:new_user_name_field
,
user
.
name
fill_element
:new_user_username_field
,
user
.
username
...
...
@@ -24,7 +28,9 @@ module QA
check_element
:new_user_accept_terms_checkbox
if
has_element?
(
:new_user_accept_terms_checkbox
)
signed_in
=
retry_until
do
click_element
:new_user_register_button
click_element
:new_user_register_button
if
has_element?
(
:new_user_register_button
)
click_element
:get_started_button
if
has_element?
(
:get_started_button
)
Page
::
Main
::
Menu
.
perform
(
&
:has_personal_area?
)
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment