#603 test cases compile issue fixed
parent
867a67d796
commit
af33ae1db3
|
@ -81,7 +81,10 @@ describe('use all parts of svg-edit', function () {
|
||||||
.trigger('mousedown', 100, 100, { force: true })
|
.trigger('mousedown', 100, 100, { force: true })
|
||||||
.trigger('mousemove', 120, 120, { force: true })
|
.trigger('mousemove', 120, 120, { force: true })
|
||||||
.trigger('mouseup', { force: true });
|
.trigger('mouseup', { force: true });
|
||||||
cy.window().then(($win) => {
|
// 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.stub($win, 'prompt').returns('./images/logo.svg');
|
||||||
cy.contains('OK');
|
cy.contains('OK');
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue