From 0229c95c7029243ffe8371362e5a5ce0c97434be Mon Sep 17 00:00:00 2001 From: kobenguyent Date: Thu, 7 Dec 2023 07:29:53 +0100 Subject: [PATCH] fix: UTs --- lib/helper/Puppeteer.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/helper/Puppeteer.js b/lib/helper/Puppeteer.js index a45ee5228..41f2fd44a 100644 --- a/lib/helper/Puppeteer.js +++ b/lib/helper/Puppeteer.js @@ -1774,7 +1774,12 @@ class Puppeteer extends Helper { for (const element of res) { for (const prop of Object.keys(cssProperties)) { - props.push(await this.grabCssPropertyFrom(locator, prop)); + const cssProp = await this.grabCssPropertyFrom(locator, prop); + if (isColorProperty(prop)) { + props.push(convertColorToRGBA(cssProp)); + } else { + props.push(cssProp); + } } }