123456789101112131415161718192021222324252627282930313233 |
- import { createFolder, getRowForFile, triggerActionForFile } from './FilesUtils.ts'
- before(() => {
- cy.createRandomUser()
- .then((user) => {
- cy.mkdir(user, '/only once')
- cy.login(user)
- cy.visit('/apps/files')
- })
- })
- it('Ensure nodes are not duplicated in the file list', () => {
-
- getRowForFile('only once').should('be.visible')
-
- cy.intercept('DELETE', '**/remote.php/dav/**').as('deleteFolder')
- triggerActionForFile('only once', 'delete')
- cy.wait('@deleteFolder')
- getRowForFile('only once').should('not.exist')
-
- createFolder('only once')
-
- getRowForFile('only once')
- .should('have.length', 1)
- })
|