8583-workerE2ETest #1570

Merged
carlossa merged 37 commits from 8583-workerE2ETest into dev 2025-03-10 11:32:58 +00:00
1 changed files with 8 additions and 3 deletions
Showing only changes of commit 5c5dcb1d35 - Show all commits

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 = {
Review

porque la variable va en mayus?

porque la variable va en mayus?
Review

Así lo quiso la BDD

Así lo quiso la BDD
'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,
Review

esto es lo mismo que hacer cy.fillInForm(Business), no?

esto es lo mismo que hacer cy.fillInForm(Business), no?
Review

Curioso porque si no estaba así, en jenkins no pasaba 🤷‍♂️

Curioso porque si no estaba así, en jenkins no pasaba 🤷‍♂️
});
cy.get(saveBtn).click();
cy.checkNotification('Data created');
});