diff options
author | mfluharty <mfluharty@gitlab.com> | 2019-04-19 13:19:59 -0600 |
---|---|---|
committer | mfluharty <mfluharty@gitlab.com> | 2019-04-19 14:03:53 -0600 |
commit | 6b7b07b7ec0bc434716236d18d34c9a4a4d2f2f4 (patch) | |
tree | 65275f0892f54e4a86f9b9c82347f2431bfa7c87 /spec/features/projects/pipelines/pipeline_spec.rb | |
parent | 2c2bd00a6c2f4484ac7ba522b8d6b5fb64304a42 (diff) | |
download | gitlab-ce-6b7b07b7ec0bc434716236d18d34c9a4a4d2f2f4.tar.gz |
Update specs that use retryable canceled jobs
Specs that test canceled jobs now
- expect them not to be retryable or playable
- expect them not to show retry buttons
Specs that test retryability now
- use failed status instead of canceled status
Diffstat (limited to 'spec/features/projects/pipelines/pipeline_spec.rb')
-rw-r--r-- | spec/features/projects/pipelines/pipeline_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/features/projects/pipelines/pipeline_spec.rb b/spec/features/projects/pipelines/pipeline_spec.rb index cf334e1e4da..0ea82ba9363 100644 --- a/spec/features/projects/pipelines/pipeline_spec.rb +++ b/spec/features/projects/pipelines/pipeline_spec.rb @@ -115,11 +115,11 @@ describe 'Pipeline', :js do end end - it 'cancels the running build and shows retry button' do + it 'cancels the running build and does not show retry button' do find('#ci-badge-deploy .ci-action-icon-container').click page.within('#ci-badge-deploy') do - expect(page).to have_css('.js-icon-retry') + expect(page).not_to have_css('.js-icon-retry') end end end @@ -133,11 +133,11 @@ describe 'Pipeline', :js do end end - it 'cancels the preparing build and shows retry button' do + it 'cancels the preparing build and does not show retry button' do find('#ci-badge-deploy .ci-action-icon-container').click page.within('#ci-badge-deploy') do - expect(page).to have_css('.js-icon-retry') + expect(page).not_to have_css('.js-icon-retry') end end end |