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>
<QItemSection>
<VnInput :label="t('management.NIF')" v-model="params.fi" filled
><template #prepend>
<QIcon name="badge" size="xs"></QIcon> </template
></VnInput>
<VnInput
:label="t('management.NIF')"
v-model="params.fi"
filled
data-cy="worker-filter-fi"
>
<template #prepend>
<QIcon name="badge" size="xs" />
</template>
</VnInput>
</QItemSection>
</QItem>
<QItem>

View File

@ -1,4 +1,4 @@
describe('WorkerList', () => {
describe('WorkerManagement', () => {
const nif = '12091201A';
const searchButton = '.q-scrollarea__content > .q-btn--standard > .q-btn__content';
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', () => {
cy.login('hr');
cy.visit(url);
cy.get('[label="NIF"] > .q-field > .q-field__inner > .q-field__control').type(
nif,
);
cy.dataCy('worker-filter-fi').type(nif);
cy.get(searchButton).click();
cy.dataCy('tableAction-0').click();
cy.get('.summaryHeader').should('exist');