From 534b9fb08bdbf228fa59c7e342f0b30473abc9e1 Mon Sep 17 00:00:00 2001 From: HeroProtagonist Date: Sat, 22 Jan 2022 23:50:22 -0500 Subject: [PATCH] add spec around commenting code --- cypress/integration/diagramUpdate.spec.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cypress/integration/diagramUpdate.spec.ts b/cypress/integration/diagramUpdate.spec.ts index 0edcf569e9..640e4e4e9d 100644 --- a/cypress/integration/diagramUpdate.spec.ts +++ b/cypress/integration/diagramUpdate.spec.ts @@ -30,4 +30,12 @@ describe('Auto sync tests', () => { cy.get('#view').should('not.have.class', 'outOfSync'); cy.getLocalStorage('codeStore').snapshot(); }); + + it('supports commenting code out/in', () => { + cy.get('#editor').type('{uparrow} {cmd}/'); + cy.get('#view').contains('Car').should('not.exist'); + + cy.get('#editor').type('{uparrow} {cmd}/'); + cy.get('#view').contains('Car').should('exist'); + }); });