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
344dd3ab
Commit
344dd3ab
authored
Jun 21, 2018
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[QA] Fix Geo QA failure
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
e923fffe
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
32 additions
and
3 deletions
+32
-3
qa/qa/ee.rb
qa/qa/ee.rb
+4
-0
qa/qa/ee/page/main/banner.rb
qa/qa/ee/page/main/banner.rb
+17
-0
qa/qa/specs/features/ee/geo/attachment_replication_spec.rb
qa/qa/specs/features/ee/geo/attachment_replication_spec.rb
+5
-1
qa/qa/specs/features/ee/geo/rename_replication_spec.rb
qa/qa/specs/features/ee/geo/rename_replication_spec.rb
+3
-1
qa/qa/specs/features/ee/geo/repository_replication_spec.rb
qa/qa/specs/features/ee/geo/repository_replication_spec.rb
+3
-1
No files found.
qa/qa/ee.rb
View file @
344dd3ab
...
@@ -4,6 +4,10 @@ module QA
...
@@ -4,6 +4,10 @@ module QA
#
#
module
EE
module
EE
module
Page
module
Page
module
Main
autoload
:Banner
,
'qa/ee/page/main/banner'
end
module
Menu
module
Menu
autoload
:Admin
,
'qa/ee/page/menu/admin'
autoload
:Admin
,
'qa/ee/page/menu/admin'
end
end
...
...
qa/qa/ee/page/main/banner.rb
0 → 100644
View file @
344dd3ab
module
QA
module
EE
module
Page
module
Main
class
Banner
<
QA
::
Page
::
Base
view
'ee/app/helpers/ee/application_helper.rb'
do
element
:read_only_message
,
'You are on a secondary, <b>read-only</b> Geo node.'
end
def
has_secondary_read_only_banner?
page
.
has_text?
(
'You are on a secondary, read-only Geo node.'
)
end
end
end
end
end
end
qa/qa/specs/features/ee/geo/attachment_replication_spec.rb
View file @
344dd3ab
...
@@ -25,7 +25,11 @@ module QA
...
@@ -25,7 +25,11 @@ module QA
authorize!
if
needs_authorization?
authorize!
if
needs_authorization?
end
end
expect
(
page
).
to
have_content
'You are on a secondary (read-only) Geo node'
EE
::
Page
::
Main
::
Banner
.
perform
do
|
banner
|
expect
(
banner
).
to
have_secondary_read_only_banner
end
expect
(
page
).
to
have_content
'You are on a secondary, read-only Geo node'
Page
::
Menu
::
Main
.
perform
do
|
menu
|
Page
::
Menu
::
Main
.
perform
do
|
menu
|
menu
.
go_to_projects
menu
.
go_to_projects
...
...
qa/qa/specs/features/ee/geo/rename_replication_spec.rb
View file @
344dd3ab
...
@@ -44,7 +44,9 @@ module QA
...
@@ -44,7 +44,9 @@ module QA
authorize!
if
needs_authorization?
authorize!
if
needs_authorization?
end
end
expect
(
page
).
to
have_content
'You are on a secondary (read-only) Geo node'
EE
::
Page
::
Main
::
Banner
.
perform
do
|
banner
|
expect
(
banner
).
to
have_secondary_read_only_banner
end
Page
::
Menu
::
Main
.
perform
do
|
menu
|
Page
::
Menu
::
Main
.
perform
do
|
menu
|
menu
.
go_to_projects
menu
.
go_to_projects
...
...
qa/qa/specs/features/ee/geo/repository_replication_spec.rb
View file @
344dd3ab
...
@@ -24,7 +24,9 @@ module QA
...
@@ -24,7 +24,9 @@ module QA
authorize!
if
needs_authorization?
authorize!
if
needs_authorization?
end
end
expect
(
page
).
to
have_content
'You are on a secondary (read-only) Geo node'
EE
::
Page
::
Main
::
Banner
.
perform
do
|
banner
|
expect
(
banner
).
to
have_secondary_read_only_banner
end
Page
::
Menu
::
Main
.
perform
do
|
menu
|
Page
::
Menu
::
Main
.
perform
do
|
menu
|
menu
.
go_to_projects
menu
.
go_to_projects
...
...
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