25 lines
851 B
JavaScript
25 lines
851 B
JavaScript
describe('WorkerPit', () => {
|
|
const addRelative = '[data-cy="addRelative"]';
|
|
const saveRelative = '[data-cy="workerPitRelativeSaveBtn"]';
|
|
const savePIT = '#st-actions > .q-btn-group > .q-btn--standard';
|
|
|
|
beforeEach(() => {
|
|
cy.viewport(1920, 1080);
|
|
cy.login('developer');
|
|
cy.visit(`/#/worker/1107/pit`);
|
|
});
|
|
|
|
it('complete PIT', () => {
|
|
cy.dataCy('familySituation').type('1');
|
|
cy.dataCy('childPension').type('120');
|
|
cy.dataCy('spouseNif').type('65117125P');
|
|
cy.dataCy('spousePension').type('120');
|
|
cy.get(savePIT).click();
|
|
cy.get(addRelative).click();
|
|
cy.dataCy('Descendant/Ascendant').type('Descendiente');
|
|
cy.dataCy('birthed').type('2002');
|
|
cy.dataCy('adoptionYear').type('2004');
|
|
cy.get(saveRelative).click();
|
|
});
|
|
});
|