From 0d2178fc5c6ee34e33d2a58dbb592e8dda9c305f Mon Sep 17 00:00:00 2001 From: alexm Date: Fri, 28 Feb 2025 11:37:49 +0100 Subject: [PATCH] refactor: refs #6695 fix invoiceOutSummary --- test/cypress/cypressParallel.sh | 4 ++++ .../cypress/integration/invoiceOut/invoiceOutSummary.spec.js | 5 +++-- test/cypress/integration/item/itemList.spec.js | 1 - 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/test/cypress/cypressParallel.sh b/test/cypress/cypressParallel.sh index 90fb383f8..c39af399f 100644 --- a/test/cypress/cypressParallel.sh +++ b/test/cypress/cypressParallel.sh @@ -1,4 +1,8 @@ cypressParallel() { + # TEST_PATHS=( + # '...' + # ) + # printf "%s\n" "${TEST_PATHS[@]}" | xargs -P $1 -I {} sh -c 'xvfb-run -a cypress run --headless --browser chromium --spec {}' find 'test/cypress/integration' -mindepth 1 -maxdepth 1 -type d | xargs -P "$1" -I {} sh -c 'echo "🔷 {}" && xvfb-run -a cypress run --headless --browser chromium --spec "{}" --quiet > /dev/null 2>&1' wait } diff --git a/test/cypress/integration/invoiceOut/invoiceOutSummary.spec.js b/test/cypress/integration/invoiceOut/invoiceOutSummary.spec.js index 333f7e2c4..bcca62b5e 100644 --- a/test/cypress/integration/invoiceOut/invoiceOutSummary.spec.js +++ b/test/cypress/integration/invoiceOut/invoiceOutSummary.spec.js @@ -13,7 +13,6 @@ describe('InvoiceOut summary', () => { const confirmSend = '.q-btn--unelevated'; beforeEach(() => { - cy.viewport(1920, 1080); cy.login('developer'); cy.visit(`/#/invoice-out/1/summary`); }); @@ -36,7 +35,9 @@ describe('InvoiceOut summary', () => { it('should open the ticket list', () => { cy.get(toTicketList).click(); cy.get('.descriptor').should('be.visible'); - cy.dataCy('vnFilterPanelChip').should('include.text', 'T1111111'); + cy.get('[data-col-field="stateFk"]').each(($el) => { + cy.wrap($el).contains('T1111111'); + }); }); it('should transfer the invoice ', () => { diff --git a/test/cypress/integration/item/itemList.spec.js b/test/cypress/integration/item/itemList.spec.js index 27b30d0c1..63eb130e7 100644 --- a/test/cypress/integration/item/itemList.spec.js +++ b/test/cypress/integration/item/itemList.spec.js @@ -16,7 +16,6 @@ describe('Item list', () => { cy.get('.q-virtual-scroll__content > :nth-child(4) > :nth-child(4)').click(); }); - // https://redmine.verdnatura.es/issues/8421 it('should create an item', () => { const data = { Description: { val: `Test item` },