From d46be3e2ecf042d719094466bec3e807efdd69dc Mon Sep 17 00:00:00 2001 From: SimonasB88 Date: Mon, 2 Oct 2023 13:52:42 +0300 Subject: [PATCH] Update 03_mollie.ps8.PaymentTests.js --- cypress/e2e/ps8/03_mollie.ps8.PaymentTests.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/cypress/e2e/ps8/03_mollie.ps8.PaymentTests.js b/cypress/e2e/ps8/03_mollie.ps8.PaymentTests.js index 715a540f7..edb1bee2f 100755 --- a/cypress/e2e/ps8/03_mollie.ps8.PaymentTests.js +++ b/cypress/e2e/ps8/03_mollie.ps8.PaymentTests.js @@ -46,14 +46,14 @@ const login = (MollieBOFOLoggingIn) => { cy.get('#history-link > .link-item').click() }) } -// //Checking the console for errors -// let windowConsoleError; -// Cypress.on('window:before:load', (win) => { -// windowConsoleError = cy.spy(win.console, 'error'); -// }) -// afterEach(() => { -// expect(windowConsoleError).to.not.be.called; -// }) +//Checking the console for errors +let windowConsoleError; +Cypress.on('window:before:load', (win) => { + windowConsoleError = cy.spy(win.console, 'error'); +}) +afterEach(() => { + expect(windowConsoleError).to.not.be.called; +}) describe('PS8 Tests Suite', () => { beforeEach(() => { cy.viewport(1920,1080)