perf: refs #8050 test e2e
gitea/salix-front/pipeline/pr-dev This commit is unstable Details

This commit is contained in:
Jon Elias 2025-04-16 12:57:55 +02:00
parent 0aa8fd6775
commit 124d7f01a5
2 changed files with 12 additions and 8 deletions

View File

@ -53,10 +53,16 @@ const getLocale = (label) => {
</QItem> </QItem>
<QItem> <QItem>
<QItemSection> <QItemSection>
<VnInput :label="t('management.NIF')" v-model="params.fi" filled <VnInput
><template #prepend> :label="t('management.NIF')"
<QIcon name="badge" size="xs"></QIcon> </template v-model="params.fi"
></VnInput> filled
data-cy="worker-filter-fi"
>
<template #prepend>
<QIcon name="badge" size="xs" />
</template>
</VnInput>
</QItemSection> </QItemSection>
</QItem> </QItem>
<QItem> <QItem>

View File

@ -1,4 +1,4 @@
describe('WorkerList', () => { describe('WorkerManagement', () => {
const nif = '12091201A'; const nif = '12091201A';
const searchButton = '.q-scrollarea__content > .q-btn--standard > .q-btn__content'; const searchButton = '.q-scrollarea__content > .q-btn--standard > .q-btn__content';
const url = '/#/worker/management'; const url = '/#/worker/management';
@ -12,9 +12,7 @@ describe('WorkerList', () => {
it('should enter the section and filter by NIF, then open the worker summary popup', () => { it('should enter the section and filter by NIF, then open the worker summary popup', () => {
cy.login('hr'); cy.login('hr');
cy.visit(url); cy.visit(url);
cy.get('[label="NIF"] > .q-field > .q-field__inner > .q-field__control').type( cy.dataCy('worker-filter-fi').type(nif);
nif,
);
cy.get(searchButton).click(); cy.get(searchButton).click();
cy.dataCy('tableAction-0').click(); cy.dataCy('tableAction-0').click();
cy.get('.summaryHeader').should('exist'); cy.get('.summaryHeader').should('exist');