From 221f4aeb0941b7717f75e3f64b33e7942d01e1c7 Mon Sep 17 00:00:00 2001 From: Elizabeth Danzberger Date: Tue, 13 Aug 2024 12:32:34 -0400 Subject: [PATCH] fix(test): increase timeout Signed-off-by: Elizabeth Danzberger --- cypress/e2e/nodes/ImageView.spec.js | 4 ++-- cypress/support/commands.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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) => {