Skip to content

Commit

Permalink
fix(test): increase timeout
Browse files Browse the repository at this point in the history
Signed-off-by: Elizabeth Danzberger <[email protected]>
  • Loading branch information
elzody committed Aug 13, 2024
1 parent 13cde93 commit c734317
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cypress/e2e/nodes/ImageView.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand All @@ -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')
Expand Down
4 changes: 2 additions & 2 deletions cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit c734317

Please sign in to comment.