From 9db1c4f721a3a0d5f3f3a103060a65b78bca4fa4 Mon Sep 17 00:00:00 2001 From: alexm Date: Tue, 22 Oct 2024 12:29:33 +0200 Subject: [PATCH] fix: refs #8039 bad tests --- src/components/FormModel.vue | 3 --- test/cypress/integration/outLogin/logout.spec.js | 7 ++++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/components/FormModel.vue b/src/components/FormModel.vue index 05f947cf3..9ac2d38a5 100644 --- a/src/components/FormModel.vue +++ b/src/components/FormModel.vue @@ -217,9 +217,6 @@ async function save() { updateAndEmit('onDataSaved', formData.value, response?.data); if ($props.reload) await arrayData.fetch({}); hasChanges.value = false; - } catch (err) { - console.error(err); - notify('errors.writeRequest', 'negative'); } finally { isLoading.value = false; } diff --git a/test/cypress/integration/outLogin/logout.spec.js b/test/cypress/integration/outLogin/logout.spec.js index 423189908..8d4e90aac 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', '**/VnUsers/acl', { + cy.intercept('GET', '**DefaultViewConfigs**', { statusCode: 401, body: { error: { @@ -24,10 +24,11 @@ describe('Logout', () => { }, }, statusMessage: 'AUTHORIZATION_REQUIRED', - }).as('someRoute'); + }); }); + it('when token not exists', () => { - cy.reload(); + cy.get('.q-list > [href="#/item"]').click(); cy.get('.q-notification__message').should( 'have.text', 'Authorization Required'