diff --git a/cypress/support/commands.js b/cypress/support/commands.js index bb8a98ba391..45a8c726c7c 100644 --- a/cypress/support/commands.js +++ b/cypress/support/commands.js @@ -266,7 +266,8 @@ Cypress.Commands.add('propfindFolder', (path, depth = 0) => { }) Cypress.Commands.add('reloadFileList', () => { - return cy.get('.vue-crumb:last-child a').click({ force: true }) + cy.get('[title="Reload current directory"] button').click() + return cy.get('button').contains('Reload content').click() }) Cypress.Commands.add('openFolder', (name) => { @@ -443,7 +444,7 @@ Cypress.Commands.add( '[data-cy-files-list] tr[data-cy-files-list-row-name="Readme.md"]', ).should('not.exist') cy.get( - '[data-cy-files-content-breadcrumbs] [data-cy-upload-picker] button.action-item__menutoggle', + '.files-list__header [data-cy-upload-picker] button.action-item__menutoggle', ).click() cy.get('li.upload-picker__menu-entry button').contains(buttonLabel).click() diff --git a/playwright/e2e/change-mime-type.spec.ts b/playwright/e2e/change-mime-type.spec.ts index 63b3a462cd8..fcc4fb736c5 100644 --- a/playwright/e2e/change-mime-type.spec.ts +++ b/playwright/e2e/change-mime-type.spec.ts @@ -19,6 +19,7 @@ test.describe('Changing mimetype from markdown to plaintext', () => { file, viewer, }) => { + test.slow() await editor.typeHeading('Hello world') await viewer.close() const plaintext = await file.move('test.txt') @@ -36,6 +37,7 @@ test.describe('Changing mimetype from plain to markdown', () => { file, viewer, }) => { + test.slow() await editor.type('## Hello world') await expect(editor.content).toHaveText('## Hello world') await viewer.close() diff --git a/playwright/support/fixtures/Node.ts b/playwright/support/fixtures/Node.ts index 10c1d880e18..941140f15cb 100644 --- a/playwright/support/fixtures/Node.ts +++ b/playwright/support/fixtures/Node.ts @@ -78,7 +78,7 @@ export class Node { async open() { // loading the file list may take a while - const timeout = 10_000 + const timeout = 15_000 await this.page.goto(`f/${this.id}`) await expect(this.page.getByLabel(this.name, { exact: true })) .toBeVisible({ timeout })