diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-01-26 21:11:52 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-01-26 21:11:52 +0000 |
commit | e04b8c1e60649802ae4249dae7fa7aaf3f0a83c7 (patch) | |
tree | dc5607b353067e079443b9478572e4a394bfe011 /spec/frontend/packages_and_registries/package_registry/components/list/package_list_row_spec.js | |
parent | cea01cb81787f0d2c119b287a5833f2e267324bc (diff) | |
download | gitlab-ce-e04b8c1e60649802ae4249dae7fa7aaf3f0a83c7.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/packages_and_registries/package_registry/components/list/package_list_row_spec.js')
-rw-r--r-- | spec/frontend/packages_and_registries/package_registry/components/list/package_list_row_spec.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/frontend/packages_and_registries/package_registry/components/list/package_list_row_spec.js b/spec/frontend/packages_and_registries/package_registry/components/list/package_list_row_spec.js index bb04701a8b7..780f324eaa7 100644 --- a/spec/frontend/packages_and_registries/package_registry/components/list/package_list_row_spec.js +++ b/spec/frontend/packages_and_registries/package_registry/components/list/package_list_row_spec.js @@ -43,6 +43,7 @@ describe('packages_list_row', () => { const findPackageLink = () => wrapper.findByTestId('details-link'); const findWarningIcon = () => wrapper.findByTestId('warning-icon'); const findLeftSecondaryInfos = () => wrapper.findByTestId('left-secondary-infos'); + const findPackageVersion = () => findLeftSecondaryInfos().findComponent(GlTruncate); const findPublishMethod = () => wrapper.findComponent(PublishMethod); const findCreatedDateText = () => wrapper.findByTestId('created-date'); const findTimeAgoTooltip = () => wrapper.findComponent(TimeagoTooltip); @@ -213,7 +214,10 @@ describe('packages_list_row', () => { it('has the package version', () => { mountComponent(); - expect(findLeftSecondaryInfos().text()).toContain(packageWithoutTags.version); + expect(findPackageVersion().props()).toMatchObject({ + text: packageWithoutTags.version, + withTooltip: true, + }); }); it('if the pipeline exists show the author message', () => { |