diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-06-21 09:08:36 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-06-21 09:08:36 +0300 |
commit | 2b9f6cfb3fc31259e923ca929d585b7fa643f39a (patch) | |
tree | b8442fca980b99a9430d2910e634198d80ca9505 /spec/frontend/packages_and_registries | |
parent | bc69b91579a1406bc62eb2ea696e5e35cff56d59 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/packages_and_registries')
-rw-r--r-- | spec/frontend/packages_and_registries/package_registry/components/details/package_files_spec.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/frontend/packages_and_registries/package_registry/components/details/package_files_spec.js b/spec/frontend/packages_and_registries/package_registry/components/details/package_files_spec.js index 21d1c870880..2c712feac86 100644 --- a/spec/frontend/packages_and_registries/package_registry/components/details/package_files_spec.js +++ b/spec/frontend/packages_and_registries/package_registry/components/details/package_files_spec.js @@ -1,7 +1,6 @@ import { GlAlert, - GlDropdown, - GlButton, + GlDisclosureDropdown, GlFormCheckbox, GlLoadingIcon, GlModal, @@ -64,9 +63,10 @@ describe('Package Files', () => { const findFirstRowDownloadLink = () => findFirstRow().findByTestId('download-link'); const findFirstRowFileIcon = () => findFirstRow().findComponent(FileIcon); const findFirstRowCreatedAt = () => findFirstRow().findComponent(TimeAgoTooltip); - const findFirstActionMenu = () => extendedWrapper(findFirstRow().findComponent(GlDropdown)); + const findFirstActionMenu = () => + extendedWrapper(findFirstRow().findComponent(GlDisclosureDropdown)); const findActionMenuDelete = () => findFirstActionMenu().findByTestId('delete-file'); - const findFirstToggleDetailsButton = () => findFirstRow().findComponent(GlButton); + const findFirstToggleDetailsButton = () => findFirstRow().findByTestId('toggle-details-button'); const findFirstRowShaComponent = (id) => wrapper.findByTestId(id); const findCheckAllCheckbox = () => wrapper.findByTestId('package-files-checkbox-all'); const findAllRowCheckboxes = () => wrapper.findAllByTestId('package-files-checkbox'); @@ -262,7 +262,7 @@ describe('Package Files', () => { expect(findFirstActionMenu().exists()).toBe(true); expect(findFirstActionMenu().props('icon')).toBe('ellipsis_v'); expect(findFirstActionMenu().props('textSrOnly')).toBe(true); - expect(findFirstActionMenu().props('text')).toMatchInterpolatedText('More actions'); + expect(findFirstActionMenu().props('toggleText')).toMatchInterpolatedText('More actions'); }); describe('menu items', () => { @@ -272,7 +272,7 @@ describe('Package Files', () => { }); it('shows delete file confirmation modal', async () => { - await findActionMenuDelete().trigger('click'); + await findActionMenuDelete().vm.$emit('action'); expect(showMock).toHaveBeenCalledTimes(1); |