From e6b410af047be90203e11066b5b69f501dd5882f Mon Sep 17 00:00:00 2001 From: Knut Sveidqvist Date: Thu, 4 Aug 2022 19:26:34 +0200 Subject: [PATCH] Selector fixes for interaction tests --- cypress/integration/other/interaction.spec.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cypress/integration/other/interaction.spec.js b/cypress/integration/other/interaction.spec.js index 692a07880..cbc660e14 100644 --- a/cypress/integration/other/interaction.spec.js +++ b/cypress/integration/other/interaction.spec.js @@ -222,7 +222,7 @@ describe('Interaction', () => { const url = 'http://localhost:9000/click_security_other.html'; cy.viewport(1440, 1024); cy.visit(url); - cy.get('body').find('g#flowchart-Function-2').click(); + cy.get('body').find('g#flowchart-Function-4').click(); // cy.get('.created-by-click').should('not.have.text', 'Clicked By Flow'); cy.get('.created-by-click').should('not.exist'); @@ -231,7 +231,7 @@ describe('Interaction', () => { const url = 'http://localhost:9000/click_security_other.html'; cy.viewport(1440, 1024); cy.visit(url); - cy.get('body').find('g[id="flowchart-1Function-6"]').click(); + cy.get('body').find('g[id="flowchart-1Function-10"]').click(); cy.get('.created-by-click').should('not.exist'); cy.get('.created-by-click').should('not.exist'); @@ -240,7 +240,7 @@ describe('Interaction', () => { const url = 'http://localhost:9000/click_security_other.html'; cy.viewport(1440, 1024); cy.visit(url); - cy.get('body').find('g#flowchart-URL-3').click(); + cy.get('body').find('g#flowchart-URL-5').click(); cy.location().should((location) => { expect(location.href).to.eq('http://localhost:9000/webpackUsage.html');