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
63763ac7
Commit
63763ac7
authored
Apr 06, 2022
by
Miguel Rincon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test for tags suggestions
This change adds a test to ensure tags suggestions are displayed.
parent
b92d0d94
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
spec/features/admin/admin_runners_spec.rb
spec/features/admin/admin_runners_spec.rb
+21
-0
No files found.
spec/features/admin/admin_runners_spec.rb
View file @
63763ac7
...
...
@@ -364,6 +364,17 @@ RSpec.describe "Admin Runners" do
create
(
:ci_runner
,
:instance
,
description:
'runner-red'
,
tag_list:
[
'red'
])
end
it
'shows tags suggestions'
do
visit
admin_runners_path
open_filtered_search_suggestions
(
'Tags'
)
page
.
within
(
search_bar_selector
)
do
expect
(
page
).
to
have_content
'blue'
expect
(
page
).
to
have_content
'red'
end
end
it
'shows correct runner when tag matches'
do
visit
admin_runners_path
...
...
@@ -709,6 +720,16 @@ RSpec.describe "Admin Runners" do
wait_for_requests
end
def
open_filtered_search_suggestions
(
filter
)
focus_filtered_search
page
.
within
(
search_bar_selector
)
do
click_on
filter
end
wait_for_requests
end
def
input_filtered_search_filter_is_only
(
filter
,
value
)
focus_filtered_search
...
...
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