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
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
Show 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,8 +28,12 @@ module QA
...
@@ -24,8 +28,12 @@ module QA
def
has_subgroup?
(
name
)
def
has_subgroup?
(
name
)
filter_by_name
(
name
)
filter_by_name
(
name
)
wait
(
reload:
false
)
do
return
false
if
page
.
has_content?
(
'Sorry, no groups or projects matched your search'
)
page
.
has_link?
(
name
)
page
.
has_link?
(
name
)
end
end
end
def
go_to_new_subgroup
def
go_to_new_subgroup
within
'.new-project-subgroup'
do
within
'.new-project-subgroup'
do
...
...
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