Commit 7c864b64 authored by Nick Kipling's avatar Nick Kipling

Adjusted ref to include icon in test

parent 1cd828e4
......@@ -58,10 +58,13 @@ export default {
<package-tags :tag-display-limit="1" :tags="packageEntity.tags" />
</div>
<div v-if="packagePipeline" class="d-flex align-items-center append-right-default">
<div
v-if="packagePipeline"
ref="package-ref"
class="d-flex align-items-center append-right-default"
>
<gl-icon name="branch" class="text-secondary append-right-8" />
<span
ref="package-ref"
v-gl-tooltip
class="font-weight-bold text-truncate mw-xs"
:title="packagePipeline.ref"
......
......@@ -115,6 +115,7 @@ describe('PackageTitle', () => {
it('correctly shows the package ref if there is one', () => {
createComponent(npmPackage);
expect(packageRef().contains('gl-icon-stub')).toBe(true);
expect(packageRef().text()).toBe(npmPackage.pipeline.ref);
});
});
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment