Skip to content

Commit e0fb25d

Browse files
authored
Problem with ScreenCompare with Playwright (#113)
* +Update resemblejs * +Fix bug for element diff * +Update package versions
1 parent fe8442b commit e0fb25d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,8 @@ class ResembleHelper extends Helper {
340340
await this._download(awsC.accessKeyId, awsC.secretAccessKey, awsC.region, awsC.bucketName, baseImage, options);
341341
}
342342

343-
if (selector) {
343+
// BoundingBox for Playwright not necessary
344+
if (selector && !this.helpers['Playwright']) {
344345
options.boundingBox = await this._getBoundingBox(selector);
345346
}
346347
const misMatch = await this._fetchMisMatchPercentage(baseImage, options);

0 commit comments

Comments
 (0)