Skip to content

Commit

Permalink
Increase waits
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeltaranto committed Mar 1, 2024
1 parent 019a6df commit aae4268
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cypress/support/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ export const assertCodePaneHasFocus = () => {
* @param {string} term
*/
export const findInCode = (term) => {
cy.wait(100); // eslint-disable-line @finsit/cypress/no-unnecessary-waiting
cy.wait(200); // eslint-disable-line @finsit/cypress/no-unnecessary-waiting
typeCode(`{${cmdPlus('f')}}`);
cy.get('.CodeMirror-search-field').type(`${term}{enter}`);
};
Expand All @@ -207,7 +207,7 @@ export const findInCode = (term) => {
* @param {string} [replaceWith]
*/
export const replaceInCode = (term, replaceWith) => {
cy.wait(100); // eslint-disable-line @finsit/cypress/no-unnecessary-waiting
cy.wait(200); // eslint-disable-line @finsit/cypress/no-unnecessary-waiting
typeCode(`{${cmdPlus('alt+f')}}`);
cy.get('.CodeMirror-search-field').type(`${term}{enter}`);
if (replaceWith) {
Expand All @@ -219,7 +219,7 @@ export const replaceInCode = (term, replaceWith) => {
* @param {number} line
*/
export const jumpToLine = (line) => {
cy.wait(100); // eslint-disable-line @finsit/cypress/no-unnecessary-waiting
cy.wait(200); // eslint-disable-line @finsit/cypress/no-unnecessary-waiting
typeCode(`{${cmdPlus('g')}}`);
cy.get('.CodeMirror-search-field').type(`${line}{enter}`);
};
Expand Down

0 comments on commit aae4268

Please sign in to comment.