29 lines
1.1 KiB
JavaScript
29 lines
1.1 KiB
JavaScript
describe('WorkerPit', () => {
|
|
const familySituationInput = '[data-cy="Family Situation_input"]';
|
|
const familySituation = '1';
|
|
const disabilityGradesSelect = '[data-cy="Disability Grades_select"]';
|
|
const childPensionInput = '[data-cy="Child Pension_input"]';
|
|
const childPension = '120';
|
|
|
|
beforeEach(() => {
|
|
cy.viewport(1920, 1080);
|
|
cy.login('developer');
|
|
cy.visit(`/#/worker/1107/pit`);
|
|
});
|
|
|
|
it('complete PIT', () => {
|
|
cy.get(familySituationInput).type(familySituation);
|
|
cy.get(disabilityGradesSelect).click('{downArrow}{enter}');
|
|
cy.get(childPensionInput).type(childPension);
|
|
// cy.get('.q-notification__message').should('have.text', 'Data created');
|
|
});
|
|
|
|
// it('delete pda', () => {
|
|
// cy.get('.q-card > .q-item > .q-item__section--side > .q-icon').click();
|
|
// cy.get(
|
|
// '.q-card__actions > .q-btn--unelevated > .q-btn__content > .block'
|
|
// ).click();
|
|
// cy.get('.q-notification__message').should('have.text', 'PDA deallocated');
|
|
// });
|
|
});
|