|
|
|
|
@ -70,7 +70,8 @@ describe('files_sharing: Public share - File drop', { testIsolation: true }, ()
|
|
|
|
|
.should('not.exist')
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
it('Can only see upload files and upload folders menu entries', () => {
|
|
|
|
|
// TODO: reenable folder upload with https://github.com/nextcloud/server/issues/15921
|
|
|
|
|
it.skip('Can only see upload files and upload folders menu entries', () => {
|
|
|
|
|
cy.contains(`Upload files to ${shareName}`)
|
|
|
|
|
.should('be.visible')
|
|
|
|
|
|
|
|
|
|
@ -87,6 +88,16 @@ describe('files_sharing: Public share - File drop', { testIsolation: true }, ()
|
|
|
|
|
.findAllByRole('menuitem')
|
|
|
|
|
.should('have.length', 2)
|
|
|
|
|
})
|
|
|
|
|
it('Can only see upload files', () => {
|
|
|
|
|
cy.contains(`Upload files to ${shareName}`)
|
|
|
|
|
.should('be.visible')
|
|
|
|
|
|
|
|
|
|
cy.findByRole('button', { name: 'New' })
|
|
|
|
|
.should('be.visible')
|
|
|
|
|
.click()
|
|
|
|
|
cy.findByRole('menu')
|
|
|
|
|
.should('not.exist')
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
it('Can only see dedicated upload button', () => {
|
|
|
|
|
cy.contains(`Upload files to ${shareName}`)
|
|
|
|
|
@ -95,15 +106,9 @@ describe('files_sharing: Public share - File drop', { testIsolation: true }, ()
|
|
|
|
|
cy.findByRole('button', { name: 'Upload' })
|
|
|
|
|
.should('be.visible')
|
|
|
|
|
.click()
|
|
|
|
|
// See upload actions
|
|
|
|
|
cy.findByRole('menuitem', { name: 'Upload files' })
|
|
|
|
|
.should('be.visible')
|
|
|
|
|
cy.findByRole('menuitem', { name: 'Upload folders' })
|
|
|
|
|
.should('be.visible')
|
|
|
|
|
// But no other
|
|
|
|
|
// But no menu
|
|
|
|
|
cy.findByRole('menu')
|
|
|
|
|
.findAllByRole('menuitem')
|
|
|
|
|
.should('have.length', 2)
|
|
|
|
|
.should('not.exist')
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
it('Can upload files', () => {
|
|
|
|
|
|