From 70113b817cb7fa742e538f58a81574a13fd3a490 Mon Sep 17 00:00:00 2001 From: skjnldsv Date: Thu, 4 Jul 2024 18:32:42 +0200 Subject: [PATCH] fix(cypress): wait for apps list fetch for better testing stability Signed-off-by: skjnldsv --- cypress/e2e/settings/apps.cy.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cypress/e2e/settings/apps.cy.ts b/cypress/e2e/settings/apps.cy.ts index c1ef24951a9aa..8739f3ac7e1ad 100644 --- a/cypress/e2e/settings/apps.cy.ts +++ b/cypress/e2e/settings/apps.cy.ts @@ -34,8 +34,15 @@ describe('Settings: App management', { testIsolation: true }, () => { // I am logged in as the admin cy.login(admin) + + // Intercept the apps list request + cy.intercept('GET', '*/settings/apps/list').as('fetchAppsList') + // I open the Apps management cy.visit('/settings/apps/installed') + + // Wait for the apps list to load + cy.wait('@fetchAppsList') }) it('Can enable an installed app', () => {