diff --git a/cypress/e2e/nodes/ImageView.spec.js b/cypress/e2e/nodes/ImageView.spec.js index 38832c1ef4a..8a9f5f85562 100644 --- a/cypress/e2e/nodes/ImageView.spec.js +++ b/cypress/e2e/nodes/ImageView.spec.js @@ -127,7 +127,7 @@ describe('Image View', () => { cy.openFile(fileName) cy.getContent() - .find('[data-component="image-view"][data-src=".attachments.123/github.png"] img') + .find('[data-component="image-view"][data-src=".attachments.123/github.png"] img', { timeout: 20000 }) .click() cy.get('.modal__content img') @@ -140,7 +140,7 @@ describe('Image View', () => { cy.openFile(fileName) cy.getContent() - .find('[data-component="image-view"][data-src=".attachments.123/file.txt.gz"] img') + .find('[data-component="image-view"][data-src=".attachments.123/file.txt.gz"] img', { timeout: 20000 }) .click() const downloadsFolder = Cypress.config('downloadsFolder') diff --git a/cypress/support/commands.js b/cypress/support/commands.js index c5cf132ac5b..5d867fa6561 100644 --- a/cypress/support/commands.js +++ b/cypress/support/commands.js @@ -324,8 +324,8 @@ Cypress.Commands.add('getModal', () => { Cypress.Commands.add('getEditor', { prevSubject: 'optional' }, (subject) => { return subject - ? cy.wrap(subject).find('[data-text-el="editor-container"]') - : cy.get('[data-text-el="editor-container"]') + ? cy.wrap(subject).find('[data-text-el="editor-container"]', { timeout: 20000 }) + : cy.get('[data-text-el="editor-container"]', { timeout: 20000 }) }) Cypress.Commands.add('getMenu', { prevSubject: 'optional' }, (subject) => {