From 38b0e47327d77314e505f5a9f7b7362331645150 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 bfd6b1965fa31..1525f47ec5f2a 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') + + // Wait for the apps list to load + cy.wait('@fetchAppsList') }) it('Can enable an installed app', () => {