diff options
Diffstat (limited to 'spec/frontend/ci/jobs_page/components/job_cells/job_cell_spec.js')
-rw-r--r-- | spec/frontend/ci/jobs_page/components/job_cells/job_cell_spec.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/frontend/ci/jobs_page/components/job_cells/job_cell_spec.js b/spec/frontend/ci/jobs_page/components/job_cells/job_cell_spec.js index cb8f6ed8f9b..bb44d970bd7 100644 --- a/spec/frontend/ci/jobs_page/components/job_cells/job_cell_spec.js +++ b/spec/frontend/ci/jobs_page/components/job_cells/job_cell_spec.js @@ -40,20 +40,20 @@ describe('Job Cell', () => { }; describe('Job Id', () => { - it('displays the job id and links to the job', () => { + it('displays the job id, job name and links to the job', () => { createComponent(); - const expectedJobId = `#${getIdFromGraphQLId(mockJob.id)}`; + const expectedJobId = `#${getIdFromGraphQLId(mockJob.id)}: ${mockJob.name}`; expect(findJobIdLink().text()).toBe(expectedJobId); expect(findJobIdLink().attributes('href')).toBe(mockJob.detailedStatus.detailsPath); expect(findJobIdNoLink().exists()).toBe(false); }); - it('display the job id with no link', () => { + it('display the job id and job name with no link', () => { createComponent(jobAsGuest); - const expectedJobId = `#${getIdFromGraphQLId(jobAsGuest.id)}`; + const expectedJobId = `#${getIdFromGraphQLId(jobAsGuest.id)}: ${jobAsGuest.name}`; expect(findJobIdNoLink().text()).toBe(expectedJobId); expect(findJobIdNoLink().exists()).toBe(true); |