forked from verdnatura/salix-front
21 lines
636 B
JavaScript
21 lines
636 B
JavaScript
describe('WorkerBasicData', () => {
|
|
const maritalStatusSelect = '[data-cy="MaritalStatus"]';
|
|
const countrySelect = '[data-cy="country"]';
|
|
const country = 'Alemania';
|
|
const nif = '42572374H';
|
|
const fi = '[data-cy="fi"]';
|
|
beforeEach(() => {
|
|
cy.viewport(1280, 720);
|
|
cy.login('developer');
|
|
cy.visit('/#/worker/1107/basic-data');
|
|
});
|
|
|
|
it('should modify worker summary', () => {
|
|
cy.get(maritalStatusSelect).type('Married');
|
|
cy.get(fi).type(nif);
|
|
cy.get(countrySelect).type(country);
|
|
cy.saveCard();
|
|
cy.checkNotification('Data saved');
|
|
});
|
|
});
|