From c4fe93b5a507189eef81742e3e2818b146ee088b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Greg=20Berg=C3=A9?= Date: Sat, 12 Apr 2025 21:00:28 +0200 Subject: [PATCH 1/2] Improve icon stabilization --- packages/gitbook/e2e/util.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/gitbook/e2e/util.ts b/packages/gitbook/e2e/util.ts index 4d3ae075a2..c2edad6186 100644 --- a/packages/gitbook/e2e/util.ts +++ b/packages/gitbook/e2e/util.ts @@ -399,12 +399,12 @@ async function waitForIcons(page: Page) { const bckDisplay = icon.style.display; icon.style.maskImage = ''; icon.style.display = 'none'; - // Force re-rendering - icon.getBoundingClientRect(); - icon.style.maskImage = bckMaskImage; - icon.style.display = bckDisplay; requestAnimationFrame(() => { - icon.setAttribute('data-argos-state', 'loaded'); + icon.style.maskImage = bckMaskImage; + icon.style.display = bckDisplay; + requestAnimationFrame(() => { + icon.setAttribute('data-argos-state', 'loaded'); + }); }); return false; } From 0e387ca6d45ebd650e8d8ef10b69de472791f76f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Greg=20Berg=C3=A9?= Date: Sat, 12 Apr 2025 21:03:43 +0200 Subject: [PATCH 2/2] Update Argos --- bun.lock | 6 +++--- packages/gitbook/package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bun.lock b/bun.lock index aadde45280..59b931e6df 100644 --- a/bun.lock +++ b/bun.lock @@ -110,7 +110,7 @@ "zustand": "^5.0.3", }, "devDependencies": { - "@argos-ci/playwright": "^5.0.2", + "@argos-ci/playwright": "^5.0.3", "@cloudflare/next-on-pages": "1.13.7", "@cloudflare/workers-types": "^4.20241230.0", "@playwright/test": "^1.51.1", @@ -276,11 +276,11 @@ "@argos-ci/api-client": ["@argos-ci/api-client@0.8.1", "", { "dependencies": { "debug": "^4.4.0", "openapi-fetch": "0.13.5" } }, "sha512-3IHv7ANSPNO6OwWgwULlHbP9/tFV9kQDu6+nL9jysfPkGj0GgtrOsyBb+iU931c7wSMo1OD+XNujCnRzDD968w=="], - "@argos-ci/browser": ["@argos-ci/browser@4.1.0", "", {}, "sha512-B5zRl70hfckS8Tpgr35ZPit/87AyIETeqm5f8dfB/qWBdkDuKW2m6tCDnVD1UYdFy4k6tU5DaD/rAMw17swsJQ=="], + "@argos-ci/browser": ["@argos-ci/browser@4.1.1", "", {}, "sha512-UyKdnprGftUjWQkb0jqJ0zGHJmcWBzdko8zRy4y+4efukVX4jjC/Px2HvWW8aqwjoR4aplouMZuzhmOkq2SCsA=="], "@argos-ci/core": ["@argos-ci/core@3.1.1", "", { "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=="], - "@argos-ci/playwright": ["@argos-ci/playwright@5.0.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=="], + "@argos-ci/playwright": ["@argos-ci/playwright@5.0.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=="], "@argos-ci/util": ["@argos-ci/util@2.3.1", "", {}, "sha512-kE61HU2480fbAnimmA4x9HK45ZJvkoqLdW5GxT5uvwhkclQykVd2S6WfGFUr3JokTXfZ5LZEEfoWgtGA316KSQ=="], diff --git a/packages/gitbook/package.json b/packages/gitbook/package.json index a52a46fad5..290846a856 100644 --- a/packages/gitbook/package.json +++ b/packages/gitbook/package.json @@ -75,7 +75,7 @@ "zustand": "^5.0.3" }, "devDependencies": { - "@argos-ci/playwright": "^5.0.2", + "@argos-ci/playwright": "^5.0.3", "@cloudflare/next-on-pages": "1.13.7", "@cloudflare/workers-types": "^4.20241230.0", "@playwright/test": "^1.51.1",