0
0
Fork 0

fix: refs #6273 tests

This commit is contained in:
Jorge Penadés 2024-06-10 14:42:41 +02:00
parent 9eed6e55be
commit 9c72597c2c
2 changed files with 8 additions and 8 deletions

View File

@ -5,10 +5,10 @@ describe('WorkerCreate', () => {
const internal = {
Fi: { val: '78457139E' },
'Web user': { val: 'defaulterworker' },
Name: { val: 'DEFAULT' },
'Last name': { val: 'WORKER' },
'Personal email': { val: 'defaultWorker@mydomain.com' },
'Web user': { val: 'manolo' },
Name: { val: 'Manolo' },
'Last name': { val: 'Hurtado' },
'Personal email': { val: 'manolo@mydomain.com' },
Street: { val: 'S/ DEFAULTWORKERSTREET' },
Location: { val: 1, type: 'select' },
Phone: { val: '123456789' },

View File

@ -8,13 +8,13 @@ describe('WorkerList', () => {
});
it('should load workers', () => {
cy.get(workerFieldNames).eq(0).should('have.text', 'jessicajones');
cy.get(workerFieldNames).eq(1).should('have.text', 'brucebanner');
cy.get(workerFieldNames).eq(2).should('have.text', 'charlesxavier');
cy.get(workerFieldNames).eq(2).should('have.text', 'jessicajones');
cy.get(workerFieldNames).eq(3).should('have.text', 'brucebanner');
cy.get(workerFieldNames).eq(4).should('have.text', 'charlesxavier');
});
it('should open the worker summary', () => {
cy.openListSummary(0);
cy.openListSummary(2);
cy.get('.summaryHeader div').should('have.text', '1110 - Jessica Jones');
cy.get('.summary .header-link')
.eq(0)