From 74c0e6dcade6783c5e8a48285c4f876c9e95d5f0 Mon Sep 17 00:00:00 2001 From: Abrifq Date: Wed, 8 Nov 2023 14:22:18 +0300 Subject: [PATCH] Update tests for the new doc links --- cypress/e2e/docMap.spec.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cypress/e2e/docMap.spec.ts b/cypress/e2e/docMap.spec.ts index 5c7e8201..41a5f70b 100755 --- a/cypress/e2e/docMap.spec.ts +++ b/cypress/e2e/docMap.spec.ts @@ -14,23 +14,23 @@ describe('Editor docs tests', () => { it('Test to see if the correct URL loads when changing from one diagram to other', () => { cy.contains('Flow').click(); - cy.get(`[data-cy=docs][href$="/#/flowchart"]`).should('exist'); + cy.get(`[data-cy=docs][href$="/syntax/flowchart.html"]`).should('exist'); cy.contains('Config').click(); - cy.get(`[data-cy=docs][href$="/#/flowchart?id=configuration"]`).should('exist'); + cy.get(`[data-cy=docs][href$="/syntax/flowchart.html#configuration"]`).should('exist'); cy.contains('Sequence').click(); - cy.get(`[data-cy=docs][href$="/#/sequenceDiagram?id=configuration"]`).should('exist'); + cy.get(`[data-cy=docs][href$="/syntax/sequenceDiagram.html#configuration"]`).should('exist'); cy.contains('Code').click(); - cy.get(`[data-cy=docs][href$="/#/sequenceDiagram"]`).should('exist'); + cy.get(`[data-cy=docs][href$="/syntax/sequenceDiagram.html"]`).should('exist'); }); it("Test to check URLs for a case where config URL doesn't exist", () => { cy.contains('State').click(); - cy.get(`[data-cy=docs][href$="/#/stateDiagram"]`).should('exist'); + cy.get(`[data-cy=docs][href$="/syntax/stateDiagram.html"]`).should('exist'); cy.contains('Config').click(); - cy.get(`[data-cy=docs][href$="/#/stateDiagram"]`).should('exist'); + cy.get(`[data-cy=docs][href$="/syntax/stateDiagram.html"]`).should('exist'); }); });