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
2b790d30
Commit
2b790d30
authored
Apr 07, 2021
by
Miguel Rincon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace CSS classes with data-testid
parent
987be4a5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
app/views/admin/runners/show.html.haml
app/views/admin/runners/show.html.haml
+2
-2
spec/features/admin/admin_runners_spec.rb
spec/features/admin/admin_runners_spec.rb
+4
-4
No files found.
app/views/admin/runners/show.html.haml
View file @
2b790d30
...
...
@@ -32,7 +32,7 @@
.col-md-6
%h4
=
_
(
'Restrict projects for this runner'
)
-
if
@runner
.
projects
.
any?
%table
.table
.assigned-projects
%table
.table
{
data:
{
testid:
'assigned-projects'
}
}
%thead
%tr
%th
=
_
(
'Assigned projects'
)
...
...
@@ -49,7 +49,7 @@
.gl-alert-actions
=
link_to
s_
(
'Disable'
),
admin_namespace_project_runner_project_path
(
project
.
namespace
,
project
,
runner_project
),
method: :delete
,
class:
'btn gl-alert-action btn-info btn-md gl-button'
%table
.table
.unassigned-projects
%table
.table
{
data:
{
testid:
'unassigned-projects'
}
}
%thead
%tr
%th
=
_
(
'Project'
)
...
...
spec/features/admin/admin_runners_spec.rb
View file @
2b790d30
...
...
@@ -321,11 +321,11 @@ RSpec.describe "Admin Runners" do
describe
'enable/create'
do
shared_examples
'assignable runner'
do
it
'enables a runner for a project'
do
within
'
.unassigned-projects
'
do
within
'
[data-testid="unassigned-projects"]
'
do
click_on
'Enable'
end
assigned_project
=
page
.
find
(
'
.assigned-projects
'
)
assigned_project
=
page
.
find
(
'
[data-testid="assigned-projects"]
'
)
expect
(
assigned_project
).
to
have_content
(
@project2
.
path
)
end
...
...
@@ -371,11 +371,11 @@ RSpec.describe "Admin Runners" do
end
it
'enables specific runner for project'
do
within
'
.assigned-projects
'
do
within
'
[data-testid="assigned-projects"]
'
do
click_on
'Disable'
end
new_runner_project
=
page
.
find
(
'
.unassigned-projects
'
)
new_runner_project
=
page
.
find
(
'
[data-testid="unassigned-projects"]
'
)
expect
(
new_runner_project
).
to
have_content
(
@project1
.
path
)
end
...
...
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