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 3dae171
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions tools/e2e/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
console.log(this.request)
cy.get('@request').its('body').as('myBody')
// eslint-disable-next-line cypress/no-unnecessary-waiting
cy.wait(2000)
console.log(this.myBody)
cy.get('@myBody').its('id').as('myId')

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

0 comments on commit 3dae171

Please sign in to comment.