diff options
author | skjnldsv <skjnldsv@protonmail.com> | 2024-07-04 18:32:42 +0200 |
---|---|---|
committer | skjnldsv <skjnldsv@protonmail.com> | 2024-07-04 18:32:42 +0200 |
commit | cf92cf3203d60f00c88c80989684d214b53e6644 (patch) | |
tree | c742d1682aec891ffcd14699d003e04ff3a2376e /cypress/e2e | |
parent | 7e663301ff9461f3a4abc06c3ee80651504bfbe5 (diff) | |
download | nextcloud-server-cf92cf3203d60f00c88c80989684d214b53e6644.tar.gz nextcloud-server-cf92cf3203d60f00c88c80989684d214b53e6644.zip |
fix(cypress): wait for apps list fetch for better testing stability
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
Diffstat (limited to 'cypress/e2e')
-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 3bc0df36e00..e9913cdc82f 100644 --- a/cypress/e2e/settings/apps.cy.ts +++ b/cypress/e2e/settings/apps.cy.ts @@ -17,8 +17,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', () => { |