fix: refs #8583 workerBusiness e2e

This commit is contained in:
Carlos Satorres 2025-03-03 13:46:30 +01:00
parent 8a984a7988
commit 5c5dcb1d35
1 changed files with 8 additions and 3 deletions

View File

@ -1,5 +1,7 @@
describe('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' },
@ -9,8 +11,8 @@ describe('WorkerBusiness', () => {
'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' },
'Contribution Code': { val: contributionCode, type: 'select' },
'Contract Type': { val: contractType, type: 'select' },
'Transport Workers Salary': { val: `1000` },
};
@ -22,7 +24,10 @@ describe('WorkerBusiness', () => {
});
it('should throw an error if a pay method has not been selected', () => {
cy.fillInForm(Business);
// cy.fillInForm(...Business);
cy.fillInForm({
...Business,
});
cy.get(saveBtn).click();
cy.checkNotification('Data created');
});