From 60f3ea838aadd04ecc609a1f8a9b82fab1a6e400 Mon Sep 17 00:00:00 2001 From: carlossa Date: Fri, 3 Jan 2025 08:18:11 +0100 Subject: [PATCH] fix: refs #7699 fix component --- src/components/common/VnChangePassword.vue | 2 +- src/pages/Login/LoginMain.vue | 7 +++---- test/cypress/integration/outLogin/login.spec.js | 1 + 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/common/VnChangePassword.vue b/src/components/common/VnChangePassword.vue index acc895f0e..780cdc17b 100644 --- a/src/components/common/VnChangePassword.vue +++ b/src/components/common/VnChangePassword.vue @@ -4,7 +4,7 @@ import { useI18n } from 'vue-i18n'; import VnRow from '../ui/VnRow.vue'; import FetchData from '../FetchData.vue'; import useNotify from 'src/composables/useNotify'; -import VnInputPassword from './VnInputPassword.vue'; +import VnInputPassword from 'VnInputPassword.vue'; const props = defineProps({ submitFn: { type: Function, default: () => {} }, diff --git a/src/pages/Login/LoginMain.vue b/src/pages/Login/LoginMain.vue index 44b868ebd..a4c3566a9 100644 --- a/src/pages/Login/LoginMain.vue +++ b/src/pages/Login/LoginMain.vue @@ -3,7 +3,7 @@ import { ref } from 'vue'; import { Notify } from 'quasar'; import { useI18n } from 'vue-i18n'; import { useRouter } from 'vue-router'; - +import VnInputPassword from 'src/components/common/VnInputPassword.vue'; import { useSession } from 'src/composables/useSession'; import { useLogin } from 'src/composables/useLogin'; @@ -63,11 +63,10 @@ async function onSubmit() { :rules="[(val) => (val && val.length > 0) || t('login.fieldRequired')]" color="primary" /> - diff --git a/test/cypress/integration/outLogin/login.spec.js b/test/cypress/integration/outLogin/login.spec.js index 3db223cdb..2bd5a8c3b 100755 --- a/test/cypress/integration/outLogin/login.spec.js +++ b/test/cypress/integration/outLogin/login.spec.js @@ -19,6 +19,7 @@ describe('Login', () => { it('should fail to log in using wrong password', () => { cy.get('input[aria-label="Username"]').type('employee'); cy.get('input[aria-label="Password"]').type('wrongPassword'); + cy.get('.q-field__append > .q-icon'); cy.get('button[type="submit"]').click(); cy.get('.q-notification__message').should( 'have.text',