diff --git a/cypress/integration/other/interaction.spec.js b/cypress/integration/other/interaction.spec.js index 63234d147..857141b5b 100644 --- a/cypress/integration/other/interaction.spec.js +++ b/cypress/integration/other/interaction.spec.js @@ -23,14 +23,14 @@ describe('Interaction', () => { // When there is a URL, cy.contains selects the a tag instead of the span. The .node is a child of a, so we have to use find instead of parent. cy.contains('URLTest1').find('.node').click(); cy.location().should(({ href }) => { - expect(href).to.eq('http://localhost:9000/webpackUsage.html'); + expect(href).to.eq('http://localhost:9000/empty.html'); }); }); it('Graph: should handle a click on a node with a bound url where the node starts with a number', () => { cy.contains('2URL').find('.node').click(); cy.location().should(({ href }) => { - expect(href).to.eq('http://localhost:9000/webpackUsage.html'); + expect(href).to.eq('http://localhost:9000/empty.html'); }); }); @@ -47,28 +47,28 @@ describe('Interaction', () => { it('Flowchart-v2: should handle a click on a node with a bound url', () => { cy.contains('URLTest2').find('.node').click(); cy.location().should(({ href }) => { - expect(href).to.eq('http://localhost:9000/webpackUsage.html'); + expect(href).to.eq('http://localhost:9000/empty.html'); }); }); it('Flowchart-v2: should handle a click on a node with a bound url where the node starts with a number', () => { cy.contains('20URL').find('.node').click(); cy.location().should(({ href }) => { - expect(href).to.eq('http://localhost:9000/webpackUsage.html'); + expect(href).to.eq('http://localhost:9000/empty.html'); }); }); it('should handle a click on a task with a bound URL clicking on the rect', () => { cy.get('rect#cl1').click({ force: true }); cy.location().should(({ href }) => { - expect(href).to.eq('http://localhost:9000/webpackUsage.html'); + expect(href).to.eq('http://localhost:9000/empty.html'); }); }); it('should handle a click on a task with a bound URL clicking on the text', () => { cy.get('text#cl1-text').click({ force: true }); cy.location().should(({ href }) => { - expect(href).to.eq('http://localhost:9000/webpackUsage.html'); + expect(href).to.eq('http://localhost:9000/empty.html'); }); }); @@ -110,28 +110,28 @@ describe('Interaction', () => { it('should handle a click on a node with a bound url', () => { cy.contains('URL1').find('.node').click(); cy.location().should(({ href }) => { - expect(href).to.eq('http://localhost:9000/webpackUsage.html'); + expect(href).to.eq('http://localhost:9000/empty.html'); }); }); it('should handle a click on a node with a bound url where the node starts with a number', () => { cy.contains('2URL').find('.node').click(); cy.location().should(({ href }) => { - expect(href).to.eq('http://localhost:9000/webpackUsage.html'); + expect(href).to.eq('http://localhost:9000/empty.html'); }); }); it('should handle a click on a task with a bound URL clicking on the rect', () => { cy.get('rect#cl1').click({ force: true }); cy.location().should(({ href }) => { - expect(href).to.eq('http://localhost:9000/webpackUsage.html'); + expect(href).to.eq('http://localhost:9000/empty.html'); }); }); it('should handle a click on a task with a bound URL clicking on the text', () => { cy.get('text#cl1-text').click({ force: true }); cy.location().should(({ href }) => { - expect(href).to.eq('http://localhost:9000/webpackUsage.html'); + expect(href).to.eq('http://localhost:9000/empty.html'); }); }); @@ -164,7 +164,7 @@ describe('Interaction', () => { it('should handle a click on a node with a bound url', () => { cy.contains('URL1').find('.node').click(); cy.location().should(({ href }) => { - expect(href).to.eq('http://localhost:9000/webpackUsage.html'); + expect(href).to.eq('http://localhost:9000/empty.html'); }); }); diff --git a/cypress/platform/click_security_loose.html b/cypress/platform/click_security_loose.html index 625d34052..459c14e85 100644 --- a/cypress/platform/click_security_loose.html +++ b/cypress/platform/click_security_loose.html @@ -17,38 +17,38 @@ graph TB FunctionTest1-->URLTest1 click FunctionTest1 clickByFlow "Add a div" - click URLTest1 "http://localhost:9000/webpackUsage.html" "Visit mermaid docs" + click URLTest1 "http://localhost:9000/empty.html" "Visit mermaid docs"
   graph TB
     1Function--->2URL
     click 1Function clickByFlow "Add a div"
-    click 2URL "http://localhost:9000/webpackUsage.html" "Visit mermaid docs"
+    click 2URL "http://localhost:9000/empty.html" "Visit mermaid docs"
       
     flowchart TB
       FunctionTest2-->URLTest2
       click FunctionTest2 clickByFlow "Add a div"
-      click URLTest2 "http://localhost:9000/webpackUsage.html" "Visit mermaid docs" _self
+      click URLTest2 "http://localhost:9000/empty.html" "Visit mermaid docs" _self
       
   flowchart TB
     10Function--->20URL
     click 10Function clickByFlow "Add a div"
-    click 20URL "http://localhost:9000/webpackUsage.html" "Visit mermaid docs" _self
+    click 20URL "http://localhost:9000/empty.html" "Visit mermaid docs" _self
       
   classDiagram
     class ShapeLink
-    link ShapeLink "http://localhost:9000/webpackUsage.html" "This is a tooltip for a link"
+    link ShapeLink "http://localhost:9000/empty.html" "This is a tooltip for a link"
     class ShapeCallback
     callback ShapeCallback "clickByClass" "This is a tooltip for a callback"
       
   classDiagram-v2
     class ShapeLink2
-    link ShapeLink2 "http://localhost:9000/webpackUsage.html" "This is a tooltip for a link"
+    link ShapeLink2 "http://localhost:9000/empty.html" "This is a tooltip for a link"
     class ShapeCallback2
     callback ShapeCallback2 "clickByClass" "This is a tooltip for a callback"
       
@@ -85,7 +85,7 @@ Calling a Callback (look at the console log) :cl2, after cl1, 3d Calling a Callback with args :cl3, after cl1, 3d - click cl1 href "http://localhost:9000/webpackUsage.html" + click cl1 href "http://localhost:9000/empty.html" click cl2 call clickByGantt() click cl3 call clickByGantt("test1", test2, test3) @@ -99,19 +99,19 @@ graph TB FunctionArgTest2-->URL click FunctionArgTest2 call clickByFlowArg(ARGUMENT) "Add a div" - click URL "http://localhost:9000/webpackUsage.html" "Visit mermaid docs" + click URL "http://localhost:9000/empty.html" "Visit mermaid docs"
       flowchart TB
         2FunctionArg-->URL
         click 2FunctionArg call clickByFlowArg(ARGUMENT) "Add a div"
-        click URL "http://localhost:9000/webpackUsage.html" "Visit mermaid docs"
+        click URL "http://localhost:9000/empty.html" "Visit mermaid docs"
       
       classDiagram
       class ShapeLink
-      link ShapeLink "http://localhost:9000/webpackUsage.html" "This is a tooltip for a link"
+      link ShapeLink "http://localhost:9000/empty.html" "This is a tooltip for a link"
       class ShapeCallback
       click ShapeCallback call clickByClass(123) "This is a tooltip for a callback"
       
@@ -119,7 +119,7 @@
       classDiagram-v2
         class ShapeLink2
-        link ShapeLink2 "http://localhost:9000/webpackUsage.html" "This is a tooltip for a link"
+        link ShapeLink2 "http://localhost:9000/empty.html" "This is a tooltip for a link"
         class ShapeCallback2
         click ShapeCallback2 call clickByClass(123) "This is a tooltip for a callback"
       
diff --git a/cypress/platform/click_security_other.html b/cypress/platform/click_security_other.html index 348c8b9aa..5338cac06 100644 --- a/cypress/platform/click_security_other.html +++ b/cypress/platform/click_security_other.html @@ -11,13 +11,13 @@ graph TB Function1-->URL1 click Function1 clickByFlow "Add a div" - click URL1 "http://localhost:9000/webpackUsage.html" "Visit mermaid docs" + click URL1 "http://localhost:9000/empty.html" "Visit mermaid docs"
   graph TB
     1Function-->2URL
     click 1Function clickByFlow "Add a div"
-    click 2URL "http://localhost:9000/webpackUsage.html" "Visit mermaid docs"
+    click 2URL "http://localhost:9000/empty.html" "Visit mermaid docs"
     
@@ -50,7 +50,7 @@
     Visit mermaidjs               :active, cl1, 2014-01-07,2014-01-10
     Calling a Callback (look at the console log) :cl2, after cl1, 3d
 
-    click cl1 href "http://localhost:9000/webpackUsage.html"
+    click cl1 href "http://localhost:9000/empty.html"
     click cl2 call clickByGantt("test", test, test)
 
     section Last section
diff --git a/cypress/platform/click_security_sandbox.html b/cypress/platform/click_security_sandbox.html
index 94229500c..49c5d71c0 100644
--- a/cypress/platform/click_security_sandbox.html
+++ b/cypress/platform/click_security_sandbox.html
@@ -17,38 +17,38 @@
     graph TB
       Function-->URL
       click Function clickByFlow "Add a div"
-      click URL "http://localhost:9000/webpackUsage.html" "Visit mermaid docs"
+      click URL "http://localhost:9000/empty.html" "Visit mermaid docs"
       
   graph TB
     1Function--->2URL
     click 1Function clickByFlow "Add a div"
-    click 2URL "http://localhost:9000/webpackUsage.html" "Visit mermaid docs"
+    click 2URL "http://localhost:9000/empty.html" "Visit mermaid docs"
       
     flowchart TB
       Function-->URL
       click Function clickByFlow "Add a div"
-      click URL "http://localhost:9000/webpackUsage.html" "Visit mermaid docs" _self
+      click URL "http://localhost:9000/empty.html" "Visit mermaid docs" _self
       
   flowchart TB
     1Function--->2URL
     click 1Function clickByFlow "Add a div"
-    click 2URL "http://localhost:9000/webpackUsage.html" "Visit mermaid docs" _self
+    click 2URL "http://localhost:9000/empty.html" "Visit mermaid docs" _self
       
   classDiagram
     class ShapeLink
-    link ShapeLink "http://localhost:9000/webpackUsage.html" "This is a tooltip for a link"
+    link ShapeLink "http://localhost:9000/empty.html" "This is a tooltip for a link"
     class ShapeCallback
     callback ShapeCallback "clickByClass" "This is a tooltip for a callback"
       
   classDiagram-v2
     class ShapeLink2
-    link ShapeLink2 "http://localhost:9000/webpackUsage.html" "This is a tooltip for a link"
+    link ShapeLink2 "http://localhost:9000/empty.html" "This is a tooltip for a link"
     class ShapeCallback2
     callback ShapeCallback2 "clickByClass" "This is a tooltip for a callback"
       
@@ -85,7 +85,7 @@ Calling a Callback (look at the console log) :cl2, after cl1, 3d Calling a Callback with args :cl3, after cl1, 3d - click cl1 href "http://localhost:9000/webpackUsage.html" + click cl1 href "http://localhost:9000/empty.html" click cl2 call clickByGantt() click cl3 call clickByGantt("test1", test2, test3) @@ -99,19 +99,19 @@ graph TB FunctionArg-->URL click FunctionArg call clickByFlowArg(ARGUMENT) "Add a div" - click URL "http://localhost:9000/webpackUsage.html" "Visit mermaid docs" + click URL "http://localhost:9000/empty.html" "Visit mermaid docs"
       flowchart TB
         FunctionArg-->URL
         click FunctionArg call clickByFlowArg(ARGUMENT) "Add a div"
-        click URL "http://localhost:9000/webpackUsage.html" "Visit mermaid docs"
+        click URL "http://localhost:9000/empty.html" "Visit mermaid docs"
       
       classDiagram
       class ShapeLink
-      link ShapeLink "http://localhost:9000/webpackUsage.html" "This is a tooltip for a link"
+      link ShapeLink "http://localhost:9000/empty.html" "This is a tooltip for a link"
       class ShapeCallback
       click ShapeCallback call clickByClass(123) "This is a tooltip for a callback"
       
@@ -119,7 +119,7 @@
       classDiagram-v2
         class ShapeLink2
-        link ShapeLink2 "http://localhost:9000/webpackUsage.html" "This is a tooltip for a link"
+        link ShapeLink2 "http://localhost:9000/empty.html" "This is a tooltip for a link"
         class ShapeCallback2
         click ShapeCallback2 call clickByClass(123) "This is a tooltip for a callback"
       
diff --git a/cypress/platform/click_security_strict.html b/cypress/platform/click_security_strict.html index 64fb2e9c6..26605ddf9 100644 --- a/cypress/platform/click_security_strict.html +++ b/cypress/platform/click_security_strict.html @@ -11,13 +11,13 @@ graph TB Function1-->URL1 click Function1 clickByFlow "Add a div" - click URL1 "http://localhost:9000/webpackUsage.html" "Visit mermaid docs" + click URL1 "http://localhost:9000/empty.html" "Visit mermaid docs"
   graph TB
     1Function-->2URL
     click 1Function clickByFlow "Add a div"
-    click 2URL "http://localhost:9000/webpackUsage.html" "Visit mermaid docs"
+    click 2URL "http://localhost:9000/empty.html" "Visit mermaid docs"
     
@@ -51,7 +51,7 @@
     Calling a Callback (look at the console log) :cl2, after cl1, 3d
     Calling a Callback with args :cl3, after cl1, 3d
 
-    click cl1 href "http://localhost:9000/webpackUsage.html"
+    click cl1 href "http://localhost:9000/empty.html"
     click cl2 call clickByGantt()
     click cl3 call clickByGantt("test1", test2, test3)
 
diff --git a/cypress/platform/empty.html b/cypress/platform/empty.html
new file mode 100644
index 000000000..2961644d6
--- /dev/null
+++ b/cypress/platform/empty.html
@@ -0,0 +1,10 @@
+
+
+  
+    
+    
+    
+    Empty
+  
+  
+