Skip to content

Commit a9a643f

Browse files
authored
Improve icon stabilization (#3147)
1 parent 77d6cb7 commit a9a643f

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

bun.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
"zustand": "^5.0.3",
111111
},
112112
"devDependencies": {
113-
"@argos-ci/playwright": "^5.0.2",
113+
"@argos-ci/playwright": "^5.0.3",
114114
"@cloudflare/next-on-pages": "1.13.7",
115115
"@cloudflare/workers-types": "^4.20241230.0",
116116
"@playwright/test": "^1.51.1",
@@ -276,11 +276,11 @@
276276

277277
"@argos-ci/api-client": ["@argos-ci/[email protected]", "", { "dependencies": { "debug": "^4.4.0", "openapi-fetch": "0.13.5" } }, "sha512-3IHv7ANSPNO6OwWgwULlHbP9/tFV9kQDu6+nL9jysfPkGj0GgtrOsyBb+iU931c7wSMo1OD+XNujCnRzDD968w=="],
278278

279-
"@argos-ci/browser": ["@argos-ci/[email protected].0", "", {}, "sha512-B5zRl70hfckS8Tpgr35ZPit/87AyIETeqm5f8dfB/qWBdkDuKW2m6tCDnVD1UYdFy4k6tU5DaD/rAMw17swsJQ=="],
279+
"@argos-ci/browser": ["@argos-ci/[email protected].1", "", {}, "sha512-UyKdnprGftUjWQkb0jqJ0zGHJmcWBzdko8zRy4y+4efukVX4jjC/Px2HvWW8aqwjoR4aplouMZuzhmOkq2SCsA=="],
280280

281281
"@argos-ci/core": ["@argos-ci/[email protected]", "", { "dependencies": { "@argos-ci/api-client": "0.8.1", "@argos-ci/util": "2.3.1", "axios": "^1.8.4", "convict": "^6.2.4", "debug": "^4.4.0", "fast-glob": "^3.3.3", "sharp": "^0.33.5", "tmp": "^0.2.3" } }, "sha512-7iE3o1XGxlfHC5AF05pzT0OxuO387sryrZt3gKGj/e+6R20DXz7J49yI8++nQ2cuT+wLhcJp8+X0ox+SGMYHmw=="],
282282

283-
"@argos-ci/playwright": ["@argos-ci/[email protected].2", "", { "dependencies": { "@argos-ci/browser": "4.1.0", "@argos-ci/core": "3.1.1", "@argos-ci/util": "2.3.1", "chalk": "^5.4.1", "debug": "^4.4.0" } }, "sha512-aOfuvsLZHSrbnOppcY6f36LQR7CQHi8/L1N7qbhVYGMfUL6jVJPzx4XliixgIBcJjCpFmIZ2qoXgQPO/Gp1fHg=="],
283+
"@argos-ci/playwright": ["@argos-ci/[email protected].3", "", { "dependencies": { "@argos-ci/browser": "4.1.1", "@argos-ci/core": "3.1.1", "@argos-ci/util": "2.3.1", "chalk": "^5.4.1", "debug": "^4.4.0" } }, "sha512-sqoARsgnDRrwKm1x10L3Z8+OQukk0F9OksVj9v9rvbzNI2WVCw5zbCUMY0qD4Q3Ba7vMFbl1ELUODRc2mfCbNw=="],
284284

285285
"@argos-ci/util": ["@argos-ci/[email protected]", "", {}, "sha512-kE61HU2480fbAnimmA4x9HK45ZJvkoqLdW5GxT5uvwhkclQykVd2S6WfGFUr3JokTXfZ5LZEEfoWgtGA316KSQ=="],
286286

packages/gitbook/e2e/util.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -399,12 +399,12 @@ async function waitForIcons(page: Page) {
399399
const bckDisplay = icon.style.display;
400400
icon.style.maskImage = '';
401401
icon.style.display = 'none';
402-
// Force re-rendering
403-
icon.getBoundingClientRect();
404-
icon.style.maskImage = bckMaskImage;
405-
icon.style.display = bckDisplay;
406402
requestAnimationFrame(() => {
407-
icon.setAttribute('data-argos-state', 'loaded');
403+
icon.style.maskImage = bckMaskImage;
404+
icon.style.display = bckDisplay;
405+
requestAnimationFrame(() => {
406+
icon.setAttribute('data-argos-state', 'loaded');
407+
});
408408
});
409409
return false;
410410
}

packages/gitbook/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
"zustand": "^5.0.3"
7676
},
7777
"devDependencies": {
78-
"@argos-ci/playwright": "^5.0.2",
78+
"@argos-ci/playwright": "^5.0.3",
7979
"@cloudflare/next-on-pages": "1.13.7",
8080
"@cloudflare/workers-types": "^4.20241230.0",
8181
"@playwright/test": "^1.51.1",

0 commit comments

Comments
 (0)