diff options
author | skjnldsv <skjnldsv@protonmail.com> | 2024-07-04 18:32:42 +0200 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2024-07-09 20:37:10 +0000 |
commit | 70113b817cb7fa742e538f58a81574a13fd3a490 (patch) | |
tree | 6fb1af1b3d3e87cc247509bce6d020c0a31081f8 /cypress | |
parent | 57c893e93ffd75c40d48847c19688262bf1c4d84 (diff) | |
download | nextcloud-server-70113b817cb7fa742e538f58a81574a13fd3a490.tar.gz nextcloud-server-70113b817cb7fa742e538f58a81574a13fd3a490.zip |
fix(cypress): wait for apps list fetch for better testing stability
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
Diffstat (limited to 'cypress')
-rw-r--r-- | cypress/e2e/settings/apps.cy.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cypress/e2e/settings/apps.cy.ts b/cypress/e2e/settings/apps.cy.ts index c1ef24951a9..8739f3ac7e1 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', () => { |