addtl test fixes

This commit is contained in:
JFH
2021-12-30 07:38:10 -03:00
parent 2ae3ba770e
commit 11405f08a3
31 changed files with 3832 additions and 943 deletions

View File

@@ -24,7 +24,8 @@ export const selectEnglish = () => {
export const testSnapshot = () => {
cy.window().then((win) => { // access to the remote Window so we can get the svgEditor variable
const svgContent = win.svgEditor.svgCanvas.getSvgString()
cy.wrap(unescape(svgContent)).toMatchSnapshot()
const svgString = win.svgEditor.svgCanvas.getSvgString()
const svgDom = new DOMParser().parseFromString(svgString, 'text/html').querySelector('body')
cy.wrap(svgDom).toMatchSnapshot()
})
}