From 0b77db0b7483c361af81711f6a4d6058ade5e2ce Mon Sep 17 00:00:00 2001 From: Ashley Harrison Date: Thu, 28 Sep 2023 16:21:15 +0100 Subject: [PATCH] Chore: Improve sandbox e2e test stability (#75663) make sure the input isn't disabled --- e2e/panels-suite/frontend-sandbox-panel.spec.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/e2e/panels-suite/frontend-sandbox-panel.spec.ts b/e2e/panels-suite/frontend-sandbox-panel.spec.ts index 09dc422b94c..69205f06e09 100644 --- a/e2e/panels-suite/frontend-sandbox-panel.spec.ts +++ b/e2e/panels-suite/frontend-sandbox-panel.spec.ts @@ -56,6 +56,7 @@ describe('Panel sandbox', () => { }, }); + cy.get('[data-testid="panel-editor-custom-editor-input"]').should('not.be.disabled'); cy.get('[data-testid="panel-editor-custom-editor-input"]').type('x'); cy.get('[data-sandbox-test="panel-editor"]').should('exist'); }); @@ -112,6 +113,7 @@ describe('Panel sandbox', () => { }, }); + cy.get('[data-testid="panel-editor-custom-editor-input"]').should('not.be.disabled'); cy.get('[data-testid="panel-editor-custom-editor-input"]').type('x'); cy.wait(100); // small delay to prevent false positives from too fast tests cy.get('[data-sandbox-test="panel-editor"]').should('not.exist');