Browse Source

fix(cypress): Increased timeout for getSettled cypress command

pull/3801/head
Muhammed Mustafa 2 years ago committed by braks
parent
commit
a5649e7ee2
  1. 2
      scripts/cypress/support/commands.js

2
scripts/cypress/support/commands.js

@ -32,7 +32,7 @@ require("@4tw/cypress-drag-drop");
// recursively gets an element, returning only after it's determined to be attached to the DOM for good // recursively gets an element, returning only after it's determined to be attached to the DOM for good
Cypress.Commands.add('getSettled', (selector, opts = {}) => { Cypress.Commands.add('getSettled', (selector, opts = {}) => {
const retries = opts.retries || 3; const retries = opts.retries || 3;
const delay = opts.delay || 300; const delay = opts.delay || 400;
const isAttached = (resolve, count = 0) => { const isAttached = (resolve, count = 0) => {
const el = Cypress.$(selector); const el = Cypress.$(selector);

Loading…
Cancel
Save