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
30e11a7a
Commit
30e11a7a
authored
Sep 17, 2020
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FOSS has "Get started!" button in a different view
parent
e8c1fb74
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
15 deletions
+6
-15
app/views/registrations/welcome.html.haml
app/views/registrations/welcome.html.haml
+1
-1
qa/qa/ee/page/main/sign_up.rb
qa/qa/ee/page/main/sign_up.rb
+0
-7
qa/qa/page/main/sign_up.rb
qa/qa/page/main/sign_up.rb
+5
-7
No files found.
app/views/registrations/welcome.html.haml
View file @
30e11a7a
...
...
@@ -22,4 +22,4 @@
-
if
partial_exists?
"registrations/welcome/button"
=
render
"registrations/welcome/button"
-
else
=
f
.
submit
_
(
'Get started!'
),
class:
'btn-register btn btn-block gl-mb-0 gl-p-3'
=
f
.
submit
_
(
'Get started!'
),
class:
'btn-register btn btn-block gl-mb-0 gl-p-3'
,
data:
{
qa_selector:
'get_started_button'
}
qa/qa/ee/page/main/sign_up.rb
View file @
30e11a7a
...
...
@@ -14,13 +14,6 @@ module QA
element
:get_started_button
end
end
private
# override FOSS
def
click_get_started_button
click_element
:get_started_button
if
has_element?
(
:get_started_button
)
end
end
end
end
...
...
qa/qa/page/main/sign_up.rb
View file @
30e11a7a
...
...
@@ -13,6 +13,10 @@ module QA
element
:new_user_accept_terms_checkbox
end
view
'app/views/registrations/welcome.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,19 +28,13 @@ module QA
signed_in
=
retry_until
do
click_element
:new_user_register_button
if
has_element?
(
:new_user_register_button
)
click_
get_started_button
click_
element
:get_started_button
if
has_element?
(
:get_started_button
)
Page
::
Main
::
Menu
.
perform
(
&
:has_personal_area?
)
end
raise
"Failed to register and sign in"
unless
signed_in
end
private
# overridden in EE
def
click_get_started_button
end
end
end
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