Attempt to fix flaky cypress tests

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2020-11-17 11:11:44 +01:00
Родитель 5fa0fd3055
Коммит d475172309
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4C614C6ED2CDE6DF
1 изменённых файлов: 6 добавлений и 3 удалений

Просмотреть файл

@ -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')