27 lines
920 B
JavaScript
27 lines
920 B
JavaScript
describe('WorkerSummary', () => {
|
|
const maritalStatusSelect = '[data-cy="MaritalStatus"]';
|
|
const nif = '42572374H';
|
|
const fi = '[data-cy="fi"]';
|
|
beforeEach(() => {
|
|
cy.viewport(1280, 720);
|
|
cy.login('developer');
|
|
cy.visit('/#/worker/1107/basic-data');
|
|
});
|
|
|
|
it('should load worker summary', () => {
|
|
cy.get(maritalStatusSelect).type('Married');
|
|
cy.get(fi).type(nif);
|
|
cy.saveCard();
|
|
});
|
|
|
|
// it('should try descriptors', () => {
|
|
// cy.waitForElement('.summaryHeader');
|
|
// cy.get(departmentDescriptor).click();
|
|
// cy.get('.descriptor').should('be.visible');
|
|
// cy.get('.q-item > .q-item__label').should('include.text', '43');
|
|
// cy.get(roleDescriptor).click();
|
|
// cy.get('.descriptor').should('be.visible');
|
|
// cy.get('.q-item > .q-item__label').should('include.text', '19');
|
|
// });
|
|
});
|