test: refs #7119 improve PIT completion by adding API interception
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
parent
2ee2002876
commit
03bef91066
|
@ -23,12 +23,15 @@ describe('WorkerPit', () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
it('complete PIT', () => {
|
it('complete PIT', () => {
|
||||||
|
cy.intercept('GET', /\/api\/WorkerIrpfs./).as('irpf');
|
||||||
|
cy.wait('@irpf').then(() => {
|
||||||
cy.get(familySituationInput).type(familySituation);
|
cy.get(familySituationInput).type(familySituation);
|
||||||
cy.get(childPensionInput).type(childPension);
|
cy.get(childPensionInput).type(childPension);
|
||||||
cy.get(spouseNifInput).type(spouseNif);
|
cy.get(spouseNifInput).type(spouseNif);
|
||||||
cy.get(spousePensionInput).type(spousePension);
|
cy.get(spousePensionInput).type(spousePension);
|
||||||
cy.get(savePIT).click();
|
cy.get(savePIT).click();
|
||||||
});
|
});
|
||||||
|
});
|
||||||
|
|
||||||
it('complete relative', () => {
|
it('complete relative', () => {
|
||||||
cy.get(addRelative).click();
|
cy.get(addRelative).click();
|
||||||
|
|
Loading…
Reference in New Issue