From 9c72597c2c855113b44adfe5173e960b1b57e688 Mon Sep 17 00:00:00 2001 From: jorgep Date: Mon, 10 Jun 2024 14:42:41 +0200 Subject: [PATCH] fix: refs #6273 tests --- test/cypress/integration/worker/workerCreate.spec.js | 8 ++++---- test/cypress/integration/worker/workerList.spec.js | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/test/cypress/integration/worker/workerCreate.spec.js b/test/cypress/integration/worker/workerCreate.spec.js index 6ace6a7f3..26ce899c8 100644 --- a/test/cypress/integration/worker/workerCreate.spec.js +++ b/test/cypress/integration/worker/workerCreate.spec.js @@ -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' }, diff --git a/test/cypress/integration/worker/workerList.spec.js b/test/cypress/integration/worker/workerList.spec.js index 1e9292626..9808fd157 100644 --- a/test/cypress/integration/worker/workerList.spec.js +++ b/test/cypress/integration/worker/workerList.spec.js @@ -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)