test(cypress): retry if failed on first try

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
This commit is contained in:
Ferdinand Thiessen 2026-03-16 19:39:51 +01:00
parent 5830b0a0af
commit 6dfeeffe20
No known key found for this signature in database
GPG key ID: 7E849AE05218500F

View file

@ -11,14 +11,12 @@ import { AuthBackend, createStorageWithConfig, StorageBackend } from './StorageU
describe('Files user credentials', { testIsolation: true }, () => {
let currentUser: User
beforeEach(() => {
})
before(() => {
cy.runOccCommand('app:enable files_external')
cy.createRandomUser().then((user) => {
currentUser = user
})
cy.runCommand('php ./cron.php')
})
afterEach(() => {
@ -42,6 +40,11 @@ describe('Files user credentials', { testIsolation: true }, () => {
cy.login(currentUser)
cy.visit('/apps/files')
// TODO: Why does the first PROPFIND does not return it?
getRowForFile('Storage1')
.if('not.exist')
.reload()
// Ensure the row is visible and marked as unavailable
getRowForFile('Storage1').as('row').should('be.visible')
cy.get('@row').find('[data-cy-files-list-row-name-link]')