From af33ae1db30a4ecb59f5693e8ee01d8e4db66f06 Mon Sep 17 00:00:00 2001 From: agriyadev5 Date: Tue, 24 Aug 2021 19:37:55 +0530 Subject: [PATCH] #603 test cases compile issue fixed --- cypress/integration/ui/scenario1.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/cypress/integration/ui/scenario1.js b/cypress/integration/ui/scenario1.js index 2273b50e..5de050e7 100644 --- a/cypress/integration/ui/scenario1.js +++ b/cypress/integration/ui/scenario1.js @@ -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(); });