Selector fixes for interaction tests

This commit is contained in:
Knut Sveidqvist
2022-08-04 19:26:34 +02:00
parent 585795fb0a
commit e6b410af04

View File

@@ -222,7 +222,7 @@ describe('Interaction', () => {
const url = 'http://localhost:9000/click_security_other.html'; const url = 'http://localhost:9000/click_security_other.html';
cy.viewport(1440, 1024); cy.viewport(1440, 1024);
cy.visit(url); 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.have.text', 'Clicked By Flow');
cy.get('.created-by-click').should('not.exist'); cy.get('.created-by-click').should('not.exist');
@@ -231,7 +231,7 @@ describe('Interaction', () => {
const url = 'http://localhost:9000/click_security_other.html'; const url = 'http://localhost:9000/click_security_other.html';
cy.viewport(1440, 1024); cy.viewport(1440, 1024);
cy.visit(url); 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');
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'; const url = 'http://localhost:9000/click_security_other.html';
cy.viewport(1440, 1024); cy.viewport(1440, 1024);
cy.visit(url); 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) => { cy.location().should((location) => {
expect(location.href).to.eq('http://localhost:9000/webpackUsage.html'); expect(location.href).to.eq('http://localhost:9000/webpackUsage.html');