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
9e52a3c6
Commit
9e52a3c6
authored
Sep 11, 2020
by
Lin Jen-Shin
Committed by
Dan Davison
Sep 11, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve "QA::Page::Main::SignUp - Missing view partial" [RUN AS-IF-FOSS]
parent
614e6aaf
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
42 additions
and
5 deletions
+42
-5
.gitlab/ci/rules.gitlab-ci.yml
.gitlab/ci/rules.gitlab-ci.yml
+4
-0
qa/qa/ee.rb
qa/qa/ee.rb
+1
-0
qa/qa/ee/page/main/sign_up.rb
qa/qa/ee/page/main/sign_up.rb
+28
-0
qa/qa/page/main/sign_up.rb
qa/qa/page/main/sign_up.rb
+9
-5
No files found.
.gitlab/ci/rules.gitlab-ci.yml
View file @
9e52a3c6
...
@@ -512,6 +512,7 @@
...
@@ -512,6 +512,7 @@
-
<<
:
*if-security-merge-request
-
<<
:
*if-security-merge-request
changes
:
*db-patterns
changes
:
*db-patterns
-
<<
:
*if-merge-request-title-as-if-foss
-
<<
:
*if-merge-request-title-as-if-foss
changes
:
*db-patterns
-
<<
:
*if-merge-request
-
<<
:
*if-merge-request
changes
:
*ci-patterns
changes
:
*ci-patterns
...
@@ -522,6 +523,7 @@
...
@@ -522,6 +523,7 @@
-
<<
:
*if-security-merge-request
-
<<
:
*if-security-merge-request
changes
:
*backend-patterns
changes
:
*backend-patterns
-
<<
:
*if-merge-request-title-as-if-foss
-
<<
:
*if-merge-request-title-as-if-foss
changes
:
*backend-patterns
-
<<
:
*if-merge-request
-
<<
:
*if-merge-request
changes
:
*ci-patterns
changes
:
*ci-patterns
...
@@ -532,6 +534,7 @@
...
@@ -532,6 +534,7 @@
-
<<
:
*if-security-merge-request
-
<<
:
*if-security-merge-request
changes
:
*backend-patterns
changes
:
*backend-patterns
-
<<
:
*if-merge-request-title-as-if-foss
-
<<
:
*if-merge-request-title-as-if-foss
changes
:
*backend-patterns
-
<<
:
*if-merge-request
-
<<
:
*if-merge-request
changes
:
*ci-patterns
changes
:
*ci-patterns
...
@@ -542,6 +545,7 @@
...
@@ -542,6 +545,7 @@
-
<<
:
*if-security-merge-request
-
<<
:
*if-security-merge-request
changes
:
*code-backstage-patterns
changes
:
*code-backstage-patterns
-
<<
:
*if-merge-request-title-as-if-foss
-
<<
:
*if-merge-request-title-as-if-foss
changes
:
*code-backstage-patterns
-
<<
:
*if-merge-request
-
<<
:
*if-merge-request
changes
:
*ci-patterns
changes
:
*ci-patterns
...
...
qa/qa/ee.rb
View file @
9e52a3c6
...
@@ -58,6 +58,7 @@ module QA
...
@@ -58,6 +58,7 @@ module QA
module
Main
module
Main
autoload
:Banner
,
'qa/ee/page/main/banner'
autoload
:Banner
,
'qa/ee/page/main/banner'
autoload
:Menu
,
'qa/ee/page/main/menu'
autoload
:Menu
,
'qa/ee/page/main/menu'
autoload
:SignUp
,
'qa/ee/page/main/sign_up'
end
end
module
Admin
module
Admin
...
...
qa/qa/ee/page/main/sign_up.rb
0 → 100644
View file @
9e52a3c6
# frozen_string_literal: true
module
QA
module
EE
module
Page
module
Main
module
SignUp
extend
QA
::
Page
::
PageConcern
def
self
.
included
(
base
)
super
base
.
view
'ee/app/views/registrations/welcome/_button.html.haml'
do
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
end
end
qa/qa/page/main/sign_up.rb
View file @
9e52a3c6
...
@@ -14,10 +14,6 @@ module QA
...
@@ -14,10 +14,6 @@ module QA
element
:new_user_accept_terms_checkbox
element
:new_user_accept_terms_checkbox
end
end
view
'ee/app/views/registrations/welcome/_button.html.haml'
do
element
:get_started_button
end
def
sign_up!
(
user
)
def
sign_up!
(
user
)
fill_element
:new_user_name_field
,
user
.
name
fill_element
:new_user_name_field
,
user
.
name
fill_element
:new_user_username_field
,
user
.
username
fill_element
:new_user_username_field
,
user
.
username
...
@@ -30,14 +26,22 @@ module QA
...
@@ -30,14 +26,22 @@ module QA
signed_in
=
retry_until
do
signed_in
=
retry_until
do
click_element
:new_user_register_button
if
has_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
)
click_
get_started_button
Page
::
Main
::
Menu
.
perform
(
&
:has_personal_area?
)
Page
::
Main
::
Menu
.
perform
(
&
:has_personal_area?
)
end
end
raise
"Failed to register and sign in"
unless
signed_in
raise
"Failed to register and sign in"
unless
signed_in
end
end
private
# overridden in EE
def
click_get_started_button
end
end
end
end
end
end
end
end
end
QA
::
Page
::
Main
::
SignUp
.
prepend_if_ee
(
'QA::EE::Page::Main::SignUp'
)
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