From 6c36bdb83469eca7081cc08bf51bbb32a4f80903 Mon Sep 17 00:00:00 2001 From: jtubau Date: Mon, 3 Feb 2025 14:44:48 +0100 Subject: [PATCH] test: refs #8484 enable ClaimPhoto tests and update VnSearchBar spec with new sales person ID --- test/cypress/integration/claim/claimPhoto.spec.js | 2 +- test/cypress/integration/vnComponent/VnSearchBar.spec.js | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/test/cypress/integration/claim/claimPhoto.spec.js b/test/cypress/integration/claim/claimPhoto.spec.js index 0a73200606..a79c36f12b 100755 --- a/test/cypress/integration/claim/claimPhoto.spec.js +++ b/test/cypress/integration/claim/claimPhoto.spec.js @@ -1,6 +1,6 @@ /// // redmine.verdnatura.es/issues/8417 -describe.skip('ClaimPhoto', () => { +describe('ClaimPhoto', () => { beforeEach(() => { const claimId = 1; cy.login('developer'); diff --git a/test/cypress/integration/vnComponent/VnSearchBar.spec.js b/test/cypress/integration/vnComponent/VnSearchBar.spec.js index c710d51921..d1983600db 100644 --- a/test/cypress/integration/vnComponent/VnSearchBar.spec.js +++ b/test/cypress/integration/vnComponent/VnSearchBar.spec.js @@ -1,7 +1,7 @@ /// describe('VnSearchBar', () => { const employeeId = ' #1'; - const salesPersonId = ' #18'; + const salesPersonClaimId = ' #132'; const idGap = '.q-item > .q-item__label'; const vnTableRow = '.q-virtual-scroll__content'; beforeEach(() => { @@ -12,11 +12,10 @@ describe('VnSearchBar', () => { it('should redirect to account summary page', () => { searchAndCheck('1', employeeId); - searchAndCheck('salesPerson', salesPersonId); + searchAndCheck('salesPersonClaim', salesPersonClaimId); }); it('should stay on the list page if there are several results or none', () => { - cy.typeSearchbar('salesA{enter}'); cy.typeSearchbar('salesA{enter}'); checkTableLength(2); @@ -29,7 +28,6 @@ describe('VnSearchBar', () => { const searchAndCheck = (searchTerm, expectedText) => { cy.clearSearchbar(); cy.typeSearchbar(`${searchTerm}{enter}`); - cy.typeSearchbar(`${searchTerm}{enter}`); cy.get(idGap).should('have.text', expectedText); };