Fix failing tests
CI Pipeline / test (20) (pull_request) Successful in 2m28s
CI Pipeline / test (18) (pull_request) Successful in 2m36s
CI Pipeline / e2e (chromium) (pull_request) Successful in 3m41s
CI Pipeline / e2e (firefox) (pull_request) Successful in 3m55s
CI Pipeline / e2e (webkit) (pull_request) Successful in 4m10s
CI Pipeline / visual-regression (pull_request) Failing after 4m25s
CI Pipeline / storybook (pull_request) Successful in 1m33s
CI Pipeline / performance (pull_request) Successful in 2m31s
CI Pipeline / lint (pull_request) Successful in 1m2s
CI Pipeline / build (pull_request) Successful in 1m28s

This commit is contained in:
adilallo
2025-09-13 17:34:12 -06:00
parent a867fc45d6
commit e6f29a2d97
9 changed files with 29 additions and 13 deletions
+15
View File
@@ -380,6 +380,15 @@ test.describe("Visual Regression Tests", () => {
// Navigate to blog listing page
await page.goto("/blog");
await page.waitForLoadState("networkidle");
// Wait for blog content to be fully rendered
await page.waitForSelector(
".grid.grid-cols-1.md\\:grid-cols-2.lg\\:grid-cols-3",
{ timeout: 10000 },
);
// Additional wait for any dynamic content to render
await page.waitForTimeout(1000);
await settle(page);
// Take full page screenshot of blog listing
@@ -393,6 +402,12 @@ test.describe("Visual Regression Tests", () => {
// Navigate to a specific blog post
await page.goto("/blog/resolving-active-conflicts");
await page.waitForLoadState("networkidle");
// Wait for blog post content to be fully rendered
await page.waitForSelector("main", { timeout: 10000 });
// Additional wait for any dynamic content to render
await page.waitForTimeout(1000);
await settle(page);
// Take full page screenshot of blog post
Binary file not shown.

Before

Width:  |  Height:  |  Size: 199 KiB

After

Width:  |  Height:  |  Size: 186 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 276 KiB

After

Width:  |  Height:  |  Size: 263 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 200 KiB

After

Width:  |  Height:  |  Size: 195 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 266 KiB

After

Width:  |  Height:  |  Size: 250 KiB