From b67a6d5d75426b386f1b9f09d88a3346fc5cba60 Mon Sep 17 00:00:00 2001 From: Jon Date: Thu, 23 Jan 2025 15:49:00 +0100 Subject: [PATCH] refactor: refs #8351 deleted skip and fixed TicketList e2e --- test/cypress/integration/ticket/ticketList.spec.js | 11 ++++++----- test/cypress/integration/ticket/ticketRequest.spec.js | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/test/cypress/integration/ticket/ticketList.spec.js b/test/cypress/integration/ticket/ticketList.spec.js index 3337287c4..2984a4ee4 100644 --- a/test/cypress/integration/ticket/ticketList.spec.js +++ b/test/cypress/integration/ticket/ticketList.spec.js @@ -30,14 +30,15 @@ describe('TicketList', () => { cy.get(firstRow).find('.q-btn:first').click(); cy.get('@windowOpen').should('be.calledWithMatch', /\/ticket\/\d+\/sale/); }); - // https://redmine.verdnatura.es/issues/8424 - it.skip('should open ticket summary', () => { + + it('should open ticket summary', () => { searchResults(); cy.get(firstRow).find('.q-btn:last').click(); - cy.dataCy('ticketSummary').should('exist'); + cy.get('.summaryHeader').should('exist'); + cy.get('.summaryBody').should('exist'); }); - it.skip('Client list create new client', () => { + it('Client list create new client', () => { cy.dataCy('vnTableCreateBtn').should('exist'); cy.dataCy('vnTableCreateBtn').click(); const data = { @@ -45,9 +46,9 @@ describe('TicketList', () => { Warehouse: { val: 'Warehouse One', type: 'select' }, Address: { val: 'employee', type: 'select' }, Landed: { val: '01-01-2024', type: 'date' }, + Agency: { val: 'Other agency', type: 'select' }, }; cy.fillInForm(data); - cy.dataCy('Agency_select').click(); cy.dataCy('FormModelPopup_save').click(); cy.checkNotification('Data created'); cy.url().should('match', /\/ticket\/\d+\/summary/); diff --git a/test/cypress/integration/ticket/ticketRequest.spec.js b/test/cypress/integration/ticket/ticketRequest.spec.js index 5a0ae636f..b9dc509ef 100644 --- a/test/cypress/integration/ticket/ticketRequest.spec.js +++ b/test/cypress/integration/ticket/ticketRequest.spec.js @@ -6,7 +6,7 @@ describe('TicketRequest', () => { cy.visit('/#/ticket/31/request'); }); - it.skip('Creates a new request', () => { + it('Creates a new request', () => { cy.dataCy('vnTableCreateBtn').should('exist'); cy.dataCy('vnTableCreateBtn').click(); const data = {