Skip to content

Commit

Permalink
fix(e2e): debugging ci
Browse files Browse the repository at this point in the history
  • Loading branch information
cmoinier committed Dec 7, 2023
1 parent 4c471e5 commit dfa4d2b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tools/e2e/commands.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable cypress/no-unnecessary-waiting */
// ***********************************************
// This example commands.js shows you how to
// create various custom commands and overwrite
Expand Down Expand Up @@ -61,10 +62,10 @@ Cypress.Commands.add('clearFavorites', () => {
cy.request({
url: '/geonetwork/srv/api/me',
headers: { accept: 'application/json' },
})
.its('body')
.its('id')
.as('myId')
}).as('request')

cy.wait(3000)
cy.get('@request').its('body').its('id').as('myId')

cy.window().then(function () {
cy.request({
Expand Down

0 comments on commit dfa4d2b

Please sign in to comment.