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}/`);