aboutsummaryrefslogtreecommitdiffstats
path: root/cypress
diff options
context:
space:
mode:
authorskjnldsv <skjnldsv@protonmail.com>2024-07-04 18:32:42 +0200
committerJohn Molakvoæ <skjnldsv@users.noreply.github.com>2024-07-25 12:53:56 +0200
commit38b0e47327d77314e505f5a9f7b7362331645150 (patch)
treee5e8c65e73488f07639dec2e365a1efcee8b488a /cypress
parent4a4f90c075f8c9a1e14c42f4a0f4bc606e7d64ab (diff)
downloadnextcloud-server-38b0e47327d77314e505f5a9f7b7362331645150.tar.gz
nextcloud-server-38b0e47327d77314e505f5a9f7b7362331645150.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.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/cypress/e2e/settings/apps.cy.ts b/cypress/e2e/settings/apps.cy.ts
index bfd6b1965fa..1525f47ec5f 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', () => {