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
e90bf94e
Commit
e90bf94e
authored
Jan 04, 2018
by
Gabriel Mazetto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix replication QA specs, extract filter_by_name
parent
c2c46013
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
6 deletions
+10
-6
qa/qa/page/dashboard/projects.rb
qa/qa/page/dashboard/projects.rb
+6
-2
qa/qa/page/project/settings/common.rb
qa/qa/page/project/settings/common.rb
+1
-1
qa/qa/specs/features/ee/geo/rename_replication_spec.rb
qa/qa/specs/features/ee/geo/rename_replication_spec.rb
+3
-3
No files found.
qa/qa/page/dashboard/projects.rb
View file @
e90bf94e
...
@@ -5,12 +5,16 @@ module QA
...
@@ -5,12 +5,16 @@ module QA
view
'app/views/dashboard/projects/index.html.haml'
view
'app/views/dashboard/projects/index.html.haml'
def
go_to_project
(
name
)
def
go_to_project
(
name
)
filter_by_name
(
name
)
find_link
(
text:
name
).
click
end
def
filter_by_name
(
name
)
page
.
within
(
'form#project-filter-form'
)
do
page
.
within
(
'form#project-filter-form'
)
do
fill_in
:name
,
with:
name
fill_in
:name
,
with:
name
page
.
find_field
(
'name'
).
native
.
send_key
(
:enter
)
page
.
find_field
(
'name'
).
native
.
send_key
(
:enter
)
end
end
find_link
(
text:
name
).
click
end
end
end
end
end
end
...
...
qa/qa/page/project/settings/common.rb
View file @
e90bf94e
...
@@ -7,7 +7,7 @@ module QA
...
@@ -7,7 +7,7 @@ module QA
page
.
within
(
selector
)
do
page
.
within
(
selector
)
do
find_button
(
'Expand'
).
click
find_button
(
'Expand'
).
click
yield
yield
if
block_given?
end
end
end
end
end
end
...
...
qa/qa/specs/features/ee/geo/rename_replication_spec.rb
View file @
e90bf94e
...
@@ -38,7 +38,7 @@ module QA
...
@@ -38,7 +38,7 @@ module QA
expect
(
page
).
to
have_content
'You are on a secondary (read-only) Geo node'
expect
(
page
).
to
have_content
'You are on a secondary (read-only) Geo node'
Page
::
M
ain
::
Menu
.
perform
do
|
menu
|
Page
::
M
enu
::
Main
.
perform
do
|
menu
|
menu
.
go_to_projects
menu
.
go_to_projects
expect
(
page
).
to
have_content
(
geo_project_name
)
expect
(
page
).
to
have_content
(
geo_project_name
)
...
@@ -57,7 +57,7 @@ module QA
...
@@ -57,7 +57,7 @@ module QA
# rename the project
# rename the project
visit
(
Runtime
::
Browser
.
url_for
(
:geo_primary
,
QA
::
Page
::
Main
::
Home
))
visit
(
Runtime
::
Browser
.
url_for
(
:geo_primary
,
QA
::
Page
::
Main
::
Home
))
Page
::
M
ain
::
Menu
.
act
{
go_to_projects
}
Page
::
M
enu
::
Main
.
act
{
go_to_projects
}
Page
::
Dashboard
::
Projects
.
perform
do
|
dashboard
|
Page
::
Dashboard
::
Projects
.
perform
do
|
dashboard
|
dashboard
.
go_to_project
(
geo_project_name
)
dashboard
.
go_to_project
(
geo_project_name
)
...
@@ -80,7 +80,7 @@ module QA
...
@@ -80,7 +80,7 @@ module QA
expect
(
page
).
to
have_content
'You are on a secondary (read-only) Geo node'
expect
(
page
).
to
have_content
'You are on a secondary (read-only) Geo node'
Page
::
M
ain
::
Menu
.
perform
do
|
menu
|
Page
::
M
enu
::
Main
.
perform
do
|
menu
|
menu
.
go_to_projects
menu
.
go_to_projects
expect
(
page
).
to
have_content
(
geo_project_newname
)
expect
(
page
).
to
have_content
(
geo_project_newname
)
...
...
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