Skip to content

Commit

Permalink
Add wait in cypress to prevent test flakiness
Browse files Browse the repository at this point in the history
  • Loading branch information
felixhabib committed May 9, 2024
1 parent a75aee5 commit b32c96d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cypress/support/utils.js
Expand Up @@ -153,6 +153,9 @@ export const assertCodePaneLineCount = (lines) => {
getCodeEditor().within(() =>
cy.get('.CodeMirror-line').should('have.length', lines)
);

// Wait after check to ensure original focus is restored
cy.wait(500); // eslint-disable-line @finsit/cypress/no-unnecessary-waiting
};

export const assertFramesMatch = (matches) =>
Expand Down

0 comments on commit b32c96d

Please sign in to comment.