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
Tatuya Kamada
gitlab-ce
Commits
03a95c70
Commit
03a95c70
authored
Dec 15, 2016
by
Filipa Lacerda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix tests
parent
48fed57b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
10 deletions
+29
-10
spec/features/projects/pipelines/pipeline_spec.rb
spec/features/projects/pipelines/pipeline_spec.rb
+29
-10
No files found.
spec/features/projects/pipelines/pipeline_spec.rb
View file @
03a95c70
...
...
@@ -40,43 +40,62 @@ describe "Pipelines", feature: true, js: true do
context
'pipeline graph'
do
it
'shows a running icon and a cancel action for the running build'
do
page
.
within
(
'.stage-column:nth-child(3) .build:first-child'
)
do
title
=
"
#{
@running
.
name
}
-
#{
@running
.
status
}
"
page
.
within
(
"a[data-title='
#{
title
}
']"
)
do
expect
(
page
).
to
have_selector
(
'.ci-status-icon-running'
)
expect
(
page
).
to
have_content
(
'deploy'
)
end
page
.
within
(
"a[data-title='
#{
title
}
'] + .ci-action-icon-container"
)
do
expect
(
page
).
to
have_selector
(
'.ci-action-icon-container .fa-ban'
)
end
end
it
'shows the success icon and a retry action for the successfull build'
do
page
.
within
(
'.stage-column:nth-child(2) .build:first-child'
)
do
title
=
"
#{
@success
.
name
}
-
#{
@success
.
status
}
"
page
.
within
(
"a[data-title='
#{
title
}
']"
)
do
expect
(
page
).
to
have_selector
(
'.ci-status-icon-success'
)
expect
(
page
).
to
have_content
(
'build'
)
end
page
.
within
(
"a[data-title='
#{
title
}
'] + .ci-action-icon-container"
)
do
expect
(
page
).
to
have_selector
(
'.ci-action-icon-container .fa-refresh'
)
end
end
it
'shows the failed icon and a retry action for the failed build'
do
page
.
within
(
'.stage-column:first-child .build'
)
do
title
=
"
#{
@failed
.
name
}
-
#{
@failed
.
status
}
"
page
.
within
(
"a[data-title='
#{
title
}
']"
)
do
expect
(
page
).
to
have_selector
(
'.ci-status-icon-failed'
)
expect
(
page
).
to
have_content
(
'test'
)
end
page
.
within
(
"a[data-title='
#{
title
}
'] + .ci-action-icon-container"
)
do
expect
(
page
).
to
have_selector
(
'.ci-action-icon-container .fa-refresh'
)
end
end
it
'shows the skipped icon and a play action for the manual build'
do
page
.
within
(
'.stage-column:nth-child(3) .build:nth-child(2)'
)
do
title
=
"
#{
@manual
.
name
}
-
#{
@manual
.
status
}
"
page
.
within
(
"a[data-title='
#{
title
}
']"
)
do
expect
(
page
).
to
have_selector
(
'.ci-status-icon-skipped'
)
expect
(
page
).
to
have_content
(
'manual'
)
expect
(
page
).
to
have_selector
(
'.ci-action-icon-container .ci-play-icon'
)
end
end
it
'shows the success icon for the generic comit status build'
do
page
.
within
(
'.stage-column:nth-child(4) .build'
)
do
expect
(
page
).
to
have_selector
(
'.ci-status-icon-success'
)
expect
(
page
).
to
have_content
(
'jenkins'
)
page
.
within
(
"a[data-title='
#{
title
}
'] + .ci-action-icon-container"
)
do
expect
(
page
).
to
have_selector
(
'.ci-action-icon-container .fa-play'
)
end
end
it
'shows the success icon and the generic comit status build'
do
expect
(
page
).
to
have_selector
(
'.ci-status-icon-success'
)
expect
(
page
).
to
have_content
(
'jenkins'
)
end
end
context
'page tabs'
do
...
...
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