test(cypress): retry if failed on first try

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
pull/58611/head
Ferdinand Thiessen 5 months ago
parent 5830b0a0af
commit 6dfeeffe20
No known key found for this signature in database
GPG Key ID: 7E849AE05218500F
  1. 9
      cypress/e2e/files_external/files-external-failed.cy.ts

@ -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]')

Loading…
Cancel
Save