fix: refs #7699 add icons and hint #1123

Merged
alexm merged 18 commits from 7699-refactroViewPassword into dev 2025-01-08 13:20:17 +00:00
3 changed files with 5 additions and 5 deletions
Showing only changes of commit 60f3ea838a - Show all commits

View File

@ -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: () => {} },

View File

@ -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"
/>
<VnInput
type="password"
<VnInputPassword
v-model="password"
:label="t('login.password')"
lazy-rules
:toggle-visibility="true"
:rules="[(val) => (val && val.length > 0) || t('login.fieldRequired')]"
class="red"
/>

View File

@ -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');
jsegarra marked this conversation as resolved
Review

Esta linea es para que el test no falle o que aporta? Quiero decir, sobre el elemento no se hace ninguna accion no?

Esta linea es para que el test no falle o que aporta? Quiero decir, sobre el elemento no se hace ninguna accion no?
Review

Comprobar que esta por lo tanto lo pulsa

Comprobar que esta por lo tanto lo pulsa
cy.get('button[type="submit"]').click();
cy.get('.q-notification__message').should(
'have.text',