From a96cad796b1ba1d1c557771a3aba337826a80017 Mon Sep 17 00:00:00 2001 From: matthijssmets Date: Thu, 12 Dec 2024 15:21:50 +0100 Subject: [PATCH] fix: increase wait before checking application of prettier --- cypress/e2e/no-profile/debug/custom-editor.cy.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cypress/e2e/no-profile/debug/custom-editor.cy.ts b/cypress/e2e/no-profile/debug/custom-editor.cy.ts index 3b89842d..c4cb9c92 100644 --- a/cypress/e2e/no-profile/debug/custom-editor.cy.ts +++ b/cypress/e2e/no-profile/debug/custom-editor.cy.ts @@ -28,10 +28,12 @@ describe('Tests for custom editor in debug tab', () => { numberOfLines = elements.length; }); cy.get('@viewDropDown').select('Xml'); + cy.wait(500) cy.get('div.line-numbers').then((elements) => { expect(elements.length).to.be.greaterThan(numberOfLines); }); cy.get('@viewDropDown').select('Raw'); + cy.wait(500) cy.get('div.line-numbers').then((elements) => { expect(elements.length).to.eq(numberOfLines); });