mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-14 21:09:50 +02:00
Selector fixes for interaction tests
This commit is contained in:
@@ -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');
|
||||||
|
Reference in New Issue
Block a user