Chore: Improve sandbox e2e test stability (#75663)

make sure the input isn't disabled
This commit is contained in:
Ashley Harrison
2023-09-28 18:21:15 +03:00
committed by GitHub
parent 6ffd4a23de
commit 0b77db0b74
@@ -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');