43 lines
1.5 KiB
JavaScript
43 lines
1.5 KiB
JavaScript
describe('WorkerBusiness', () => {
|
|
const saveBtn = '.q-mt-lg > .q-btn--standard';
|
|
|
|
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: `Representantes de comercio`, type: 'select' },
|
|
'Contract Type': { val: `INDEFINIDO A TIEMPO COMPLETO`, type: 'select' },
|
|
'Transport Workers Salary': { val: `1000` },
|
|
};
|
|
|
|
beforeEach(() => {
|
|
cy.viewport(1280, 720);
|
|
cy.login('hr');
|
|
cy.visit('/#/worker/1107/business');
|
|
cy.get('.q-page-sticky > div > .q-btn').click();
|
|
});
|
|
|
|
it('should throw an error if a pay method has not been selected', () => {
|
|
cy.fillInForm(Business);
|
|
cy.get(saveBtn).click();
|
|
cy.checkNotification('Data created');
|
|
});
|
|
|
|
// it('should create an internal', () => {
|
|
// cy.fillInForm(internal);
|
|
// cy.get(saveBtn).click();
|
|
// cy.checkNotification('Data created');
|
|
// });
|
|
|
|
// it('should create an external', () => {
|
|
// cy.get(externalRadio).click();
|
|
// cy.fillInForm(external);
|
|
// cy.get(saveBtn).click();
|
|
// cy.checkNotification('Data created');
|
|
// });
|
|
});
|