salix-front/test/cypress/integration/worker/workerBusiness.spec.js

35 lines
1.2 KiB
JavaScript

describe.skip('WorkerBusiness', () => {
const saveBtn = '.q-mt-lg > .q-btn--standard';
const contributionCode = `Representantes de comercio`;
const contractType = `INDEFINIDO A TIEMPO COMPLETO`;
const Business = {
'Start Date': { val: '26-12-2002', type: 'date' },
Company: { val: `VNL`, type: 'select' },
Department: { val: `RECICLAJE`, type: 'select' },
'Professional Category': { val: `employee`, type: 'select' },
'Work Calendar': { val: `General schedule`, type: 'select' },
'Work Center': { val: `Silla`, type: 'select' },
'Contract Category': { val: `INFORMATICA`, type: 'select' },
'Contribution Code': { val: contributionCode, type: 'select' },
Rate: { val: `5` },
'Contract Type': { val: contractType, type: 'select' },
'Transport Workers Salary': { val: `1000` },
};
beforeEach(() => {
cy.viewport(1280, 720);
cy.login('hr');
cy.visit('/#/worker/1107/business');
cy.addCard();
});
it('should create a business', () => {
cy.fillInForm({
...Business,
});
cy.get(saveBtn).click();
cy.checkNotification('Data created');
});
});