fix some tests
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
export const approveStorage = () => {
|
||||
// JFH will need to be chnaged when dialog is changed...
|
||||
cy.get('#storage_ok').click()
|
||||
}
|
||||
|
||||
@@ -22,3 +21,10 @@ export const selectEnglish = () => {
|
||||
cy.get('#lang_select').select('en')
|
||||
cy.get('#tool_prefs_save').click()
|
||||
}
|
||||
|
||||
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()
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user