From a2aa929b62aaba0e799f875a351459a819b575c5 Mon Sep 17 00:00:00 2001 From: Andreas Waigand Date: Sun, 12 Dec 2021 17:17:04 +0100 Subject: [PATCH] fix: electron requires numbers as parameters --- src/plugin.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugin.js b/src/plugin.js index 0a99a1f..9bcf1df 100644 --- a/src/plugin.js +++ b/src/plugin.js @@ -98,9 +98,9 @@ const getCompareSnapshotsPlugin = on => { } if (browser.name === 'electron') { // eslint-disable-next-line no-param-reassign - launchOptions.preferences.width = width + launchOptions.preferences.width = Number.parseInt(width, 10) // eslint-disable-next-line no-param-reassign - launchOptions.preferences.height = height + launchOptions.preferences.height = Number.parseInt(height, 10) } if (browser.name === 'firefox') { launchOptions.args.push(`--width=${width}`)