diff options
Diffstat (limited to 'spec/frontend/ci/jobs_page/components/job_cells')
-rw-r--r-- | spec/frontend/ci/jobs_page/components/job_cells/actions_cell_spec.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/frontend/ci/jobs_page/components/job_cells/actions_cell_spec.js b/spec/frontend/ci/jobs_page/components/job_cells/actions_cell_spec.js index 1ffd680118e..7af333543b8 100644 --- a/spec/frontend/ci/jobs_page/components/job_cells/actions_cell_spec.js +++ b/spec/frontend/ci/jobs_page/components/job_cells/actions_cell_spec.js @@ -43,6 +43,7 @@ describe('Job actions cell', () => { const cannotPlayJob = findMockJob('playable', mockJobsNodesAsGuest); const cannotRetryJob = findMockJob('retryable', mockJobsNodesAsGuest); const cannotPlayScheduledJob = findMockJob('scheduled', mockJobsNodesAsGuest); + const cannotCancelJob = findMockJob('cancelable', mockJobsNodesAsGuest); const findRetryButton = () => wrapper.findByTestId('retry'); const findPlayButton = () => wrapper.findByTestId('play'); @@ -99,6 +100,7 @@ describe('Job actions cell', () => { ${findPlayButton} | ${'play'} | ${cannotPlayJob} ${findRetryButton} | ${'retry'} | ${cannotRetryJob} ${findPlayScheduledJobButton} | ${'play scheduled'} | ${cannotPlayScheduledJob} + ${findCancelButton} | ${'cancel'} | ${cannotCancelJob} `('does not display the $action button if user cannot update build', ({ button, jobType }) => { createComponent(jobType); |