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
0d15c8b3
Commit
0d15c8b3
authored
Jan 05, 2017
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Combine some tests in pipelines specs to speed it up
parent
b5dfd03e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
12 deletions
+20
-12
spec/features/projects/pipelines/pipelines_spec.rb
spec/features/projects/pipelines/pipelines_spec.rb
+20
-12
No files found.
spec/features/projects/pipelines/pipelines_spec.rb
View file @
0d15c8b3
require
'spec_helper'
require
'rails_helper'
describe
'Pipelines'
,
:feature
,
:js
do
include
WaitForVueResource
...
...
@@ -51,15 +50,18 @@ describe 'Pipelines', :feature, :js do
visit_project_pipelines
end
it
{
expect
(
page
).
to
have_link
(
'Cancel'
)
}
it
{
expect
(
page
).
to
have_selector
(
'.ci-running'
)
}
it
'indicates that pipeline can be canceled'
do
expect
(
page
).
to
have_link
(
'Cancel'
)
expect
(
page
).
to
have_selector
(
'.ci-running'
)
end
context
'when canceling'
do
before
{
click_link
(
'Cancel'
)
}
it
{
expect
(
page
).
not_to
have_link
(
'Cancel'
)
}
it
{
expect
(
page
).
to
have_selector
(
'.ci-canceled'
)
}
it
'indicated that pipelines was canceled'
do
expect
(
page
).
not_to
have_link
(
'Cancel'
)
expect
(
page
).
to
have_selector
(
'.ci-canceled'
)
end
end
end
...
...
@@ -75,14 +77,18 @@ describe 'Pipelines', :feature, :js do
visit_project_pipelines
end
it
{
expect
(
page
).
to
have_link
(
'Retry'
)
}
it
{
expect
(
page
).
to
have_selector
(
'.ci-failed'
)
}
it
'indicates that pipeline can be retried'
do
expect
(
page
).
to
have_link
(
'Retry'
)
expect
(
page
).
to
have_selector
(
'.ci-failed'
)
end
context
'when retrying'
do
before
{
click_link
(
'Retry'
)
}
it
{
expect
(
page
).
not_to
have_link
(
'Retry'
)
}
it
{
expect
(
page
).
to
have_selector
(
'.ci-running'
)
}
it
'shows running pipeline that is not retryable'
do
expect
(
page
).
not_to
have_link
(
'Retry'
)
expect
(
page
).
to
have_selector
(
'.ci-running'
)
end
end
end
...
...
@@ -159,8 +165,10 @@ describe 'Pipelines', :feature, :js do
context
'when canceling'
do
before
{
click_link
(
'Cancel'
)
}
it
{
expect
(
page
).
not_to
have_link
(
'Cancel'
)
}
it
{
expect
(
page
).
to
have_selector
(
'.ci-canceled'
)
}
it
'indicates that pipeline was canceled'
do
expect
(
page
).
not_to
have_link
(
'Cancel'
)
expect
(
page
).
to
have_selector
(
'.ci-canceled'
)
end
end
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