This commit is contained in:
parent
0aa8fd6775
commit
124d7f01a5
|
@ -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>
|
||||||
|
|
|
@ -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');
|
||||||
|
|
Loading…
Reference in New Issue