Adding image snapshots for graphs

This commit is contained in:
Knut Sveidqvist
2019-05-31 14:20:43 +02:00
parent 7242a98adb
commit 357e738983
9 changed files with 1147 additions and 60 deletions

13
e2e/helpers/util.js Normal file
View File

@@ -0,0 +1,13 @@
import { Base64 } from 'js-base64'
const mermaidUrl = (graphStr, options) => {
const obj = {
code: graphStr,
mermaid: options
}
const objStr = JSON.stringify(obj)
// console.log(Base64)
return 'http://localhost:9000/e2e.html?graph=' + Base64.encodeURI(objStr)
}
export default mermaidUrl