mirror of
https://github.com/nextcloud/server.git
synced 2026-03-21 18:11:02 -04:00
test(cypress): retry if failed on first try
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
This commit is contained in:
parent
5830b0a0af
commit
6dfeeffe20
1 changed files with 6 additions and 3 deletions
|
|
@ -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…
Reference in a new issue