зеркало из https://github.com/nextcloud/text.git
Attempt to fix flaky cypress tests
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Родитель
5fa0fd3055
Коммит
d475172309
|
@ -80,7 +80,8 @@ describe('Open test.md in viewer', function() {
|
|||
|
||||
it('Shares the file as a public link with write permissions', function () {
|
||||
cy.visit('/apps/files')
|
||||
cy.get('#fileList tr[data-file="test2.md"] a.action-share', {timeout: 10000}).trigger('click')
|
||||
cy.get('#fileList tr[data-file="test2.md"] a.action-share', {timeout: 10000})
|
||||
.click({force: true})
|
||||
cy.get('#app-sidebar-vue')
|
||||
.should('be.visible')
|
||||
cy.get('#app-sidebar-vue a#sharing').trigger('click')
|
||||
|
@ -107,7 +108,8 @@ describe('Open test.md in viewer', function() {
|
|||
|
||||
it('Opens the editor as guest', function () {
|
||||
cy.visit('/apps/files')
|
||||
cy.get('#fileList tr[data-file="test2.md"] a.action-share', {timeout: 10000}).trigger('click')
|
||||
cy.get('#fileList tr[data-file="test2.md"] a.action-share', {timeout: 10000})
|
||||
.click({force: true})
|
||||
cy.get('#app-sidebar-vue')
|
||||
.should('be.visible')
|
||||
cy.get('#app-sidebar-vue a#sharing').trigger('click')
|
||||
|
@ -131,7 +133,8 @@ describe('Open test.md in viewer', function() {
|
|||
|
||||
it('Shares a folder as a public read only link', function () {
|
||||
cy.visit('/apps/files', { timeout: 10000 })
|
||||
cy.get('#fileList tr[data-file="folder"] a.action-share', {timeout: 10000}).trigger('click')
|
||||
cy.get('#fileList tr[data-file="folder"] a.action-share', {timeout: 10000})
|
||||
.click({force: true})
|
||||
cy.get('#app-sidebar-vue')
|
||||
.should('be.visible')
|
||||
cy.get('#app-sidebar-vue a#sharing').trigger('click')
|
||||
|
|
Загрузка…
Ссылка в новой задаче