Skip to content

Commit

Permalink
fix(cypress): wait for apps list fetch for better testing stability
Browse files Browse the repository at this point in the history
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
  • Loading branch information
skjnldsv authored and backportbot[bot] committed Jul 9, 2024
1 parent 57c893e commit 70113b8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cypress/e2e/settings/apps.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down

0 comments on commit 70113b8

Please sign in to comment.