diff options
Diffstat (limited to 'spec/frontend/ci/runner/admin_runner_show/admin_runner_show_app_spec.js')
-rw-r--r-- | spec/frontend/ci/runner/admin_runner_show/admin_runner_show_app_spec.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/frontend/ci/runner/admin_runner_show/admin_runner_show_app_spec.js b/spec/frontend/ci/runner/admin_runner_show/admin_runner_show_app_spec.js index a4ba9815c8d..c4ed6d1bdb5 100644 --- a/spec/frontend/ci/runner/admin_runner_show/admin_runner_show_app_spec.js +++ b/spec/frontend/ci/runner/admin_runner_show/admin_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 = '/admin/runners'; Vue.use(VueApollo); @@ -89,7 +90,7 @@ describe('AdminRunnerShowApp', () => { }); 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', () => { |