Skip to content

Commit

Permalink
test: attempt to fix test by waiting for PATCH to complete
Browse files Browse the repository at this point in the history
  • Loading branch information
edoardo committed Nov 30, 2023
1 parent 32c903e commit 9c5f3dc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cypress/integration/save.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,15 @@ describe('rename', () => {
expectAOTitleToContain(AO_NAME)
expectTableToBeVisible()

cy.intercept('PATCH', '**/api/*/eventVisualizations/*').as(
'patch-rename'
)

// rename the AO, changing name only
renameVisualization(UPDATED_AO_NAME)

cy.wait('@patch-rename')

expectTableToBeVisible()
expectAOTitleToContain(AO_NAME)

Expand Down

0 comments on commit 9c5f3dc

Please sign in to comment.