summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2016-11-18 23:16:51 +0800
committerLin Jen-Shin <godfat@godfat.org>2016-11-18 23:16:51 +0800
commit9a0201473e24e5036506f0cc8761290da1ca743b (patch)
tree02fc8c25073f13d3652b53bd32c1182ec860457e
parent578ced29f24f9c0db3159d366a974927fbe3946b (diff)
downloadgitlab-ce-9a0201473e24e5036506f0cc8761290da1ca743b.tar.gz
Add when cancelling for external jobs, feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7508#note_18622182
-rw-r--r--spec/features/projects/pipelines_spec.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/features/projects/pipelines_spec.rb b/spec/features/projects/pipelines_spec.rb
index b3ef9a11d56..544372108ed 100644
--- a/spec/features/projects/pipelines_spec.rb
+++ b/spec/features/projects/pipelines_spec.rb
@@ -97,6 +97,13 @@ describe "Pipelines" do
it 'has pipeline running' do
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') }
+ end
end
context 'when failed' do