fix(cypress): wait for apps list fetch for better testing stability

Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
This commit is contained in:
skjnldsv 2024-07-04 18:32:42 +02:00
parent 7e663301ff
commit cf92cf3203

View file

@ -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', () => {