Skip to content

Commit

Permalink
fix: UTs
Browse files Browse the repository at this point in the history
  • Loading branch information
kobenguyent committed Dec 7, 2023
1 parent f8e2cb4 commit 0229c95
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/helper/Puppeteer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}

Expand Down

0 comments on commit 0229c95

Please sign in to comment.