From 55a18a3e66dcff5796557003330dc40773bf273e Mon Sep 17 00:00:00 2001 From: Tomas Date: Mon, 20 Nov 2023 15:19:47 +0100 Subject: [PATCH] Delete overview test app in Cypress --- .../testing/cypress/src/integration/studio/overview.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/frontend/testing/cypress/src/integration/studio/overview.js b/frontend/testing/cypress/src/integration/studio/overview.js index 5e45e6e345e..91605b3aeb9 100644 --- a/frontend/testing/cypress/src/integration/studio/overview.js +++ b/frontend/testing/cypress/src/integration/studio/overview.js @@ -23,6 +23,14 @@ context('Designer', () => { cy.visit('/dashboard'); }); + after(() => { + cy.deleteApp( + Cypress.env('orgUserName'), + Cypress.env('designerAppName'), + Cypress.env('accessToken'), + ); + }); + it('loads the overview page when navigating to app for user with no environments', () => { // Ensure feature flag is toggled // TODO: remove this once feature flag is removed (https://github.com/Altinn/altinn-studio/issues/11495)