From 15977357d9c4c3e76d79cd5798ee78a222e367ff Mon Sep 17 00:00:00 2001 From: guillermo Date: Mon, 28 Oct 2024 14:11:34 +0100 Subject: [PATCH 1/2] refactor: refs #7266 Changed method name --- src/pages/Entry/EntryBuysTableDialog.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/Entry/EntryBuysTableDialog.vue b/src/pages/Entry/EntryBuysTableDialog.vue index 0f9be6298..23a6a0021 100644 --- a/src/pages/Entry/EntryBuysTableDialog.vue +++ b/src/pages/Entry/EntryBuysTableDialog.vue @@ -121,7 +121,7 @@ const entriesTableColumns = computed(() => [ :loading="isLoading" @click=" openReport( - `Entries/${props.row.id}/buy-label` + `Entries/${props.row.id}/buy-label-supplier` ) " unelevated From 42fbdff5bd2e4d4e00d4514b35b861440e032ac1 Mon Sep 17 00:00:00 2001 From: alexm Date: Tue, 29 Oct 2024 08:48:06 +0100 Subject: [PATCH 2/2] test: fix e2e --- src/components/ui/VnConfirm.vue | 1 + test/cypress/integration/outLogin/logout.spec.js | 7 ++----- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/components/ui/VnConfirm.vue b/src/components/ui/VnConfirm.vue index ec9d0f48b..0abfc84bc 100644 --- a/src/components/ui/VnConfirm.vue +++ b/src/components/ui/VnConfirm.vue @@ -34,6 +34,7 @@ const emit = defineEmits(['confirm', 'cancel', ...useDialogPluginComponent.emits const { dialogRef, onDialogHide, onDialogOK, onDialogCancel } = useDialogPluginComponent(); +defineExpose({ show: () => dialogRef.value.show(), hide: () => dialogRef.value.hide() }); const title = props.title || t('Confirm'); const message = diff --git a/test/cypress/integration/outLogin/logout.spec.js b/test/cypress/integration/outLogin/logout.spec.js index 8d4e90aac..d6c33a65b 100644 --- a/test/cypress/integration/outLogin/logout.spec.js +++ b/test/cypress/integration/outLogin/logout.spec.js @@ -13,7 +13,7 @@ describe('Logout', () => { }); describe('not user', () => { beforeEach(() => { - cy.intercept('GET', '**DefaultViewConfigs**', { + cy.intercept('GET', '**StarredModules**', { statusCode: 401, body: { error: { @@ -29,10 +29,7 @@ describe('Logout', () => { it('when token not exists', () => { cy.get('.q-list > [href="#/item"]').click(); - cy.get('.q-notification__message').should( - 'have.text', - 'Authorization Required' - ); + cy.checkNotification('Authorization Required'); }); }); });