diff options
Diffstat (limited to 'spec/frontend/ci/runner/group_runner_show/group_runner_show_app_spec.js')
-rw-r--r-- | spec/frontend/ci/runner/group_runner_show/group_runner_show_app_spec.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/frontend/ci/runner/group_runner_show/group_runner_show_app_spec.js b/spec/frontend/ci/runner/group_runner_show/group_runner_show_app_spec.js index 5a4c34fc374..120388900b5 100644 --- a/spec/frontend/ci/runner/group_runner_show/group_runner_show_app_spec.js +++ b/spec/frontend/ci/runner/group_runner_show/group_runner_show_app_spec.js @@ -34,6 +34,7 @@ jest.mock('~/lib/utils/url_utility', () => ({ const mockRunner = runnerData.data.runner; const mockRunnerGraphqlId = mockRunner.id; const mockRunnerId = `${getIdFromGraphQLId(mockRunnerGraphqlId)}`; +const mockRunnerSha = mockRunner.shortSha; const mockRunnersPath = '/groups/group1/-/runners'; const mockEditGroupRunnerPath = `/groups/group1/-/runners/${mockRunnerId}/edit`; @@ -91,7 +92,7 @@ describe('GroupRunnerShowApp', () => { }); it('displays the runner header', () => { - expect(findRunnerHeader().text()).toContain(`Runner #${mockRunnerId}`); + expect(findRunnerHeader().text()).toContain(`#${mockRunnerId} (${mockRunnerSha})`); }); it('displays the runner edit and pause buttons', () => { |