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