test: use Docker for playwright tests

This commit is contained in:
rusconn
2023-10-16 00:51:20 +09:00
parent 612613859c
commit 8fadf783b6
11 changed files with 18 additions and 18 deletions

View File

@@ -1,10 +1,6 @@
import { expect, test } from "@playwright/test";
// avoid VRT on CI because of difference between CI and local test env
// we can do VRT on CI if dockerize local test env
if (!process.env.CI) {
test("VRT", async ({ page }) => {
await page.goto("/");
await expect(page).toHaveScreenshot();
});
}
test("VRT", async ({ page }) => {
await page.goto("/");
await expect(page).toHaveScreenshot();
});

Binary file not shown.

Before

Width:  |  Height:  |  Size: 68 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 90 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 87 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB