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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
a4fdb47f
Commit
a4fdb47f
authored
Jan 30, 2018
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Speed-up the click on 'New subgroup' if the 'No results' text is shown
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
03f386c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
qa/qa/page/group/show.rb
qa/qa/page/group/show.rb
+9
-1
No files found.
qa/qa/page/group/show.rb
View file @
a4fdb47f
...
@@ -13,6 +13,10 @@ module QA
...
@@ -13,6 +13,10 @@ module QA
element
:new_subgroup_button
,
/%input.*\.js-new-group-child/
element
:new_subgroup_button
,
/%input.*\.js-new-group-child/
end
end
view
'app/assets/javascripts/groups/constants.js'
do
element
:no_result_text
,
'Sorry, no groups or projects matched your search'
end
def
go_to_subgroup
(
name
)
def
go_to_subgroup
(
name
)
click_link
name
click_link
name
end
end
...
@@ -24,7 +28,11 @@ module QA
...
@@ -24,7 +28,11 @@ module QA
def
has_subgroup?
(
name
)
def
has_subgroup?
(
name
)
filter_by_name
(
name
)
filter_by_name
(
name
)
page
.
has_link?
(
name
)
wait
(
reload:
false
)
do
return
false
if
page
.
has_content?
(
'Sorry, no groups or projects matched your search'
)
page
.
has_link?
(
name
)
end
end
end
def
go_to_new_subgroup
def
go_to_new_subgroup
...
...
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