From 3b086d2c59ad8a984b6a4b3d5decfc02a636d21f Mon Sep 17 00:00:00 2001 From: Camille Moinier Date: Thu, 7 Dec 2023 12:48:03 +0100 Subject: [PATCH] fix(e2e): debugging ci --- tools/e2e/commands.ts | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/tools/e2e/commands.ts b/tools/e2e/commands.ts index 2e29d3b5d6..65010cacf5 100644 --- a/tools/e2e/commands.ts +++ b/tools/e2e/commands.ts @@ -61,10 +61,16 @@ Cypress.Commands.add('clearFavorites', () => { cy.request({ url: '/geonetwork/srv/api/me', headers: { accept: 'application/json' }, - }) - .its('body') - .its('id') - .as('myId') + }).as('request') + + // eslint-disable-next-line cypress/no-unnecessary-waiting + cy.wait(3000) + cy.log(this.request) + cy.get('@request').its('body').as('myBody') + // eslint-disable-next-line cypress/no-unnecessary-waiting + cy.wait(2000) + cy.log(this.myBody) + cy.get('@myBody').its('id').as('myId') cy.window().then(function () { cy.request({