@argos-ci/playwright 0.0.3 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/index.mjs +3 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -28,7 +28,9 @@ function waitForFontLoading() {
|
|
|
28
28
|
}
|
|
29
29
|
// Check if the images are loaded
|
|
30
30
|
function waitForImagesLoading() {
|
|
31
|
-
|
|
31
|
+
const allImages = Array.from(document.images);
|
|
32
|
+
allImages.forEach((img)=>img.loading = "eager");
|
|
33
|
+
return allImages.every((img)=>img.complete);
|
|
32
34
|
}
|
|
33
35
|
async function argosScreenshot(page, name, { element , has , hasText , ...options } = {}) {
|
|
34
36
|
if (!page) throw new Error("A Playwright `page` object is required.");
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@argos-ci/playwright",
|
|
3
3
|
"description": "Visual testing solution to avoid visual regression. Playwright commands and utilities for Argos visual testing.",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.5",
|
|
5
5
|
"author": "Smooth Code",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": "github:argos-ci/argos-playwright",
|