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
b6221910
Commit
b6221910
authored
Aug 14, 2018
by
Alexis Reigel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
only run the specs as :js that actually need to
parent
6a3dc667
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
spec/features/admin/admin_runners_spec.rb
spec/features/admin/admin_runners_spec.rb
+5
-5
No files found.
spec/features/admin/admin_runners_spec.rb
View file @
b6221910
require
'spec_helper'
require
'spec_helper'
describe
"Admin Runners"
,
:js
do
describe
"Admin Runners"
do
include
StubENV
include
StubENV
include
FilteredSearchHelpers
include
FilteredSearchHelpers
include
SortingHelper
include
SortingHelper
...
@@ -23,7 +23,7 @@ describe "Admin Runners", :js do
...
@@ -23,7 +23,7 @@ describe "Admin Runners", :js do
expect
(
page
).
to
have_text
"Runners currently online: 1"
expect
(
page
).
to
have_text
"Runners currently online: 1"
end
end
describe
'search'
do
describe
'search'
,
:js
do
before
do
before
do
FactoryBot
.
create
:ci_runner
,
description:
'runner-foo'
FactoryBot
.
create
:ci_runner
,
description:
'runner-foo'
FactoryBot
.
create
:ci_runner
,
description:
'runner-bar'
FactoryBot
.
create
:ci_runner
,
description:
'runner-bar'
...
@@ -45,7 +45,7 @@ describe "Admin Runners", :js do
...
@@ -45,7 +45,7 @@ describe "Admin Runners", :js do
end
end
end
end
describe
'filter by status'
do
describe
'filter by status'
,
:js
do
it
'shows correct runner when status matches'
do
it
'shows correct runner when status matches'
do
FactoryBot
.
create
:ci_runner
,
description:
'runner-active'
,
active:
true
FactoryBot
.
create
:ci_runner
,
description:
'runner-active'
,
active:
true
FactoryBot
.
create
:ci_runner
,
description:
'runner-paused'
,
active:
false
FactoryBot
.
create
:ci_runner
,
description:
'runner-paused'
,
active:
false
...
@@ -75,7 +75,7 @@ describe "Admin Runners", :js do
...
@@ -75,7 +75,7 @@ describe "Admin Runners", :js do
end
end
end
end
it
'shows correct runner when status is selected and search term is entered'
do
it
'shows correct runner when status is selected and search term is entered'
,
:js
do
FactoryBot
.
create
:ci_runner
,
description:
'runner-a-1'
,
active:
true
FactoryBot
.
create
:ci_runner
,
description:
'runner-a-1'
,
active:
true
FactoryBot
.
create
:ci_runner
,
description:
'runner-a-2'
,
active:
false
FactoryBot
.
create
:ci_runner
,
description:
'runner-a-2'
,
active:
false
FactoryBot
.
create
:ci_runner
,
description:
'runner-b-1'
,
active:
true
FactoryBot
.
create
:ci_runner
,
description:
'runner-b-1'
,
active:
true
...
@@ -93,7 +93,7 @@ describe "Admin Runners", :js do
...
@@ -93,7 +93,7 @@ describe "Admin Runners", :js do
expect
(
page
).
not_to
have_content
'runner-a-2'
expect
(
page
).
not_to
have_content
'runner-a-2'
end
end
it
'sorts by last contact date'
do
it
'sorts by last contact date'
,
:js
do
FactoryBot
.
create
:ci_runner
,
description:
'runner-1'
,
created_at:
'2018-07-12 15:37'
,
contacted_at:
'2018-07-12 15:37'
FactoryBot
.
create
:ci_runner
,
description:
'runner-1'
,
created_at:
'2018-07-12 15:37'
,
contacted_at:
'2018-07-12 15:37'
FactoryBot
.
create
:ci_runner
,
description:
'runner-2'
,
created_at:
'2018-07-12 16:37'
,
contacted_at:
'2018-07-12 16:37'
FactoryBot
.
create
:ci_runner
,
description:
'runner-2'
,
created_at:
'2018-07-12 16:37'
,
contacted_at:
'2018-07-12 16:37'
...
...
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