1234567891011121314151617181920212223242526272829303132 |
- import { getRowForFile, haveValidity, triggerActionForFile } from '../../files/FilesUtils.ts'
- import { getShareUrl, setupPublicShare } from './setup-public-share.ts'
- describe('files_sharing: Public share - renaming files', { testIsolation: true }, () => {
- beforeEach(() => {
- setupPublicShare()
- .then(() => cy.logout())
- .then(() => cy.visit(getShareUrl()))
- })
- it('can rename a file', () => {
-
- getRowForFile('foo.txt').should('be.visible')
- triggerActionForFile('foo.txt', 'rename')
- getRowForFile('foo.txt')
- .findByRole('textbox', { name: 'Filename' })
- .should('be.visible')
- .type('{selectAll}other.txt')
- .should(haveValidity(''))
- .type('{enter}')
-
- getRowForFile('other.txt').should('be.visible')
- })
- })
|