#603 test cases compile issue fixed

master
agriyadev5 2021-08-24 19:37:55 +05:30
parent 867a67d796
commit af33ae1db3
1 changed files with 7 additions and 4 deletions

View File

@ -81,10 +81,13 @@ describe('use all parts of svg-edit', function () {
.trigger('mousedown', 100, 100, { force: true })
.trigger('mousemove', 120, 120, { force: true })
.trigger('mouseup', { force: true });
cy.window().then(($win) => {
cy.stub($win, 'prompt').returns('./images/logo.svg');
cy.contains('OK');
});
// eslint-disable-next-line promise/catch-or-return
cy.window()
// eslint-disable-next-line promise/always-return
.then(($win) => {
cy.stub($win, 'prompt').returns('./images/logo.svg');
cy.contains('OK');
});
cy.get('#svgcontent').toMatchSnapshot();
});