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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
5bc97cd4
Commit
5bc97cd4
authored
8 years ago
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix pipeline stage graph test example false positive
parent
253781db
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
spec/features/projects/pipelines/pipelines_spec.rb
spec/features/projects/pipelines/pipelines_spec.rb
+7
-6
No files found.
spec/features/projects/pipelines/pipelines_spec.rb
View file @
5bc97cd4
...
@@ -245,9 +245,9 @@ describe 'Pipelines', :feature, :js do
...
@@ -245,9 +245,9 @@ describe 'Pipelines', :feature, :js do
context
'mini pipeline graph'
do
context
'mini pipeline graph'
do
let!
(
:build
)
do
let!
(
:build
)
do
create
(
:ci_build
,
pipeline:
pipeline
,
create
(
:ci_build
,
:pending
,
pipeline:
pipeline
,
stage:
'build'
,
stage:
'build'
,
name:
'build'
)
name:
'build'
)
end
end
before
{
visit_project_pipelines
}
before
{
visit_project_pipelines
}
...
@@ -257,18 +257,19 @@ describe 'Pipelines', :feature, :js do
...
@@ -257,18 +257,19 @@ describe 'Pipelines', :feature, :js do
expect
(
page
).
to
have_selector
(
'.js-builds-dropdown-button'
)
expect
(
page
).
to
have_selector
(
'.js-builds-dropdown-button'
)
end
end
context
'when clicking a
graph sta
ge'
do
context
'when clicking a
stage bad
ge'
do
it
'should open a dropdown'
do
it
'should open a dropdown'
do
find
(
'.js-builds-dropdown-button'
).
trigger
(
'click'
)
find
(
'.js-builds-dropdown-button'
).
trigger
(
'click'
)
expect
(
page
).
to
have_link
build
.
name
expect
(
page
).
to
have_link
build
.
name
end
end
it
'should be possible to
retry the failed
build'
do
it
'should be possible to
cancel pending
build'
do
find
(
'.js-builds-dropdown-button'
).
trigger
(
'click'
)
find
(
'.js-builds-dropdown-button'
).
trigger
(
'click'
)
find
(
'a.js-ci-action-icon'
).
trigger
(
'click'
)
find
(
'a.js-ci-action-icon'
).
trigger
(
'click'
)
expect
(
page
).
not_to
have_content
(
'Cancel running'
)
expect
(
page
).
to
have_content
(
'canceled'
)
expect
(
build
.
reload
).
to
be_canceled
end
end
end
end
end
end
...
...
This diff is collapsed.
Click to expand it.
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