From bb12fe1e6950bce8cdaac30d7b3f41501c93d1d5 Mon Sep 17 00:00:00 2001 From: tuutti Date: Thu, 25 Jan 2024 11:23:30 +0200 Subject: [PATCH] UHF-8762: Fixes --- backstop_data/fast/engine_scripts/onBefore.js | 2 +- backstop_data/full/engine_scripts/onBefore.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backstop_data/fast/engine_scripts/onBefore.js b/backstop_data/fast/engine_scripts/onBefore.js index ef6aea34e..38f0db8d8 100644 --- a/backstop_data/fast/engine_scripts/onBefore.js +++ b/backstop_data/fast/engine_scripts/onBefore.js @@ -3,7 +3,7 @@ module.exports = async (page, scenario, vp, isReference, browserContext, config) const { hostname } = config; // Add cookies to browser - browserContext.setCookie([ + page.setCookie([ { 'name': 'cookie-agreed-version', 'value': '1.1.0', diff --git a/backstop_data/full/engine_scripts/onBefore.js b/backstop_data/full/engine_scripts/onBefore.js index ef6aea34e..38f0db8d8 100644 --- a/backstop_data/full/engine_scripts/onBefore.js +++ b/backstop_data/full/engine_scripts/onBefore.js @@ -3,7 +3,7 @@ module.exports = async (page, scenario, vp, isReference, browserContext, config) const { hostname } = config; // Add cookies to browser - browserContext.setCookie([ + page.setCookie([ { 'name': 'cookie-agreed-version', 'value': '1.1.0',