From c821848b7492e347182ac4d094ccbe26a6c9ec6a Mon Sep 17 00:00:00 2001 From: Sidharth Vinod Date: Thu, 13 Apr 2023 16:42:12 +0530 Subject: [PATCH] Fix commenting test --- cypress/e2e/diagramUpdate.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cypress/e2e/diagramUpdate.spec.ts b/cypress/e2e/diagramUpdate.spec.ts index 737afcaf..1de872b0 100644 --- a/cypress/e2e/diagramUpdate.spec.ts +++ b/cypress/e2e/diagramUpdate.spec.ts @@ -51,7 +51,7 @@ describe('Auto sync tests', () => { it('supports commenting code out/in', () => { cy.get('#editor').contains('Car').click(); - cy.get('#editor').get('textarea').type(`${cmd}/`); + cy.focused().type(`${cmd}/`); cy.get('#view').contains('Car').should('not.exist'); typeInEditor(`{uparrow}${cmd}/`);