From 0874eec35540ef9382a0b512e2138a66bc01fb90 Mon Sep 17 00:00:00 2001 From: alexm Date: Fri, 28 Feb 2025 10:10:46 +0100 Subject: [PATCH] test: refs #6695 enable previously skipped tests across multiple spec files --- test/cypress/integration/claim/claimPhoto.spec.js | 10 +++++----- test/cypress/integration/client/clientAddress.spec.js | 2 +- .../integration/invoiceOut/invoiceOutList.spec.js | 2 +- test/cypress/integration/item/itemList.spec.js | 2 +- .../ticket/negative/TicketLackDetail.spec.js | 2 +- test/cypress/integration/worker/workerCreate.spec.js | 2 +- .../worker/workerNotificationsManager.spec.js | 2 +- 7 files changed, 11 insertions(+), 11 deletions(-) diff --git a/test/cypress/integration/claim/claimPhoto.spec.js b/test/cypress/integration/claim/claimPhoto.spec.js index c3522cbfe..86d33b9c7 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'); @@ -12,14 +12,14 @@ describe.skip('ClaimPhoto', () => { cy.get('label > .q-btn input').selectFile('test/cypress/fixtures/image.jpg', { force: true, }); - cy.get('.q-notification__message').should('have.text', 'Data saved'); + cy.checkNotification('Data saved'); }); it('should add new file with drag and drop', () => { cy.get('.container').selectFile('test/cypress/fixtures/image.jpg', { action: 'drag-drop', }); - cy.get('.q-notification__message').should('have.text', 'Data saved'); + cy.checkNotification('Data saved'); }); it('should open first image dialog change to second and close', () => { @@ -45,7 +45,7 @@ describe.skip('ClaimPhoto', () => { cy.get( '.q-card__actions > .q-btn--unelevated > .q-btn__content > .block', ).click(); - cy.get('.q-notification__message').should('have.text', 'Data deleted'); + cy.checkNotification('Data deleted'); cy.get( '.multimediaParent > :nth-last-child(1) > .q-btn > .q-btn__content > .q-icon', @@ -53,6 +53,6 @@ describe.skip('ClaimPhoto', () => { cy.get( '.q-card__actions > .q-btn--unelevated > .q-btn__content > .block', ).click(); - cy.get('.q-notification__message').should('have.text', 'Data deleted'); + cy.checkNotification('Data deleted'); }); }); diff --git a/test/cypress/integration/client/clientAddress.spec.js b/test/cypress/integration/client/clientAddress.spec.js index 79bb3603a..8673c9083 100644 --- a/test/cypress/integration/client/clientAddress.spec.js +++ b/test/cypress/integration/client/clientAddress.spec.js @@ -9,7 +9,7 @@ describe('Client consignee', () => { cy.get('.q-card').should('be.visible'); }); - it.skip('check as equalizated', function () { + it('check as equalizated', function () { cy.get('.q-card__section > .address-card').then(($el) => { let addressCards_before = $el.length; diff --git a/test/cypress/integration/invoiceOut/invoiceOutList.spec.js b/test/cypress/integration/invoiceOut/invoiceOutList.spec.js index 24e1f0eba..d3a84d226 100644 --- a/test/cypress/integration/invoiceOut/invoiceOutList.spec.js +++ b/test/cypress/integration/invoiceOut/invoiceOutList.spec.js @@ -29,7 +29,7 @@ describe('InvoiceOut list', () => { cy.dataCy('InvoiceOutDownloadPdfBtn').click(); }); - it.skip('should open the invoice descriptor from table icon', () => { + it('should open the invoice descriptor from table icon', () => { cy.get(firstSummaryIcon).click(); cy.get('.cardSummary').should('be.visible'); cy.get('.summaryHeader > div').should('include.text', 'A1111111'); diff --git a/test/cypress/integration/item/itemList.spec.js b/test/cypress/integration/item/itemList.spec.js index f0c744f21..27b30d0c1 100644 --- a/test/cypress/integration/item/itemList.spec.js +++ b/test/cypress/integration/item/itemList.spec.js @@ -17,7 +17,7 @@ describe('Item list', () => { }); // https://redmine.verdnatura.es/issues/8421 - it.skip('should create an item', () => { + it('should create an item', () => { const data = { Description: { val: `Test item` }, Type: { val: `Crisantemo`, type: 'select' }, diff --git a/test/cypress/integration/ticket/negative/TicketLackDetail.spec.js b/test/cypress/integration/ticket/negative/TicketLackDetail.spec.js index 9ea1cff63..3a69780f7 100644 --- a/test/cypress/integration/ticket/negative/TicketLackDetail.spec.js +++ b/test/cypress/integration/ticket/negative/TicketLackDetail.spec.js @@ -41,7 +41,7 @@ describe('Ticket Lack detail', () => { cy.wait('@getItemLack'); }); describe('Table actions', () => { - it.skip('should display only one row in the lack list', () => { + it('should display only one row in the lack list', () => { cy.location('href').should('contain', '#/ticket/negative/5'); cy.get('[data-cy="changeItem"]').should('be.disabled'); diff --git a/test/cypress/integration/worker/workerCreate.spec.js b/test/cypress/integration/worker/workerCreate.spec.js index 6349f04a0..71fd6b347 100644 --- a/test/cypress/integration/worker/workerCreate.spec.js +++ b/test/cypress/integration/worker/workerCreate.spec.js @@ -1,4 +1,4 @@ -describe.skip('WorkerCreate', () => { +describe('WorkerCreate', () => { const externalRadio = '.q-radio:nth-child(2)'; const developerBossId = 120; const payMethodCross = diff --git a/test/cypress/integration/worker/workerNotificationsManager.spec.js b/test/cypress/integration/worker/workerNotificationsManager.spec.js index 0907cc4ad..ad48d8a6c 100644 --- a/test/cypress/integration/worker/workerNotificationsManager.spec.js +++ b/test/cypress/integration/worker/workerNotificationsManager.spec.js @@ -22,7 +22,7 @@ describe('WorkerNotificationsManager', () => { ); }); - it.skip('should active a notification that is yours', () => { + it('should active a notification that is yours', () => { cy.login('developer'); cy.visit(`/#/worker/${developerId}/notifications`); cy.waitForElement(activeList);