test: add github actions playwright workflow

This commit is contained in:
rusconn
2023-10-14 10:57:02 +09:00
parent 6c7f03d3fe
commit b0d5afe08b
3 changed files with 43 additions and 5 deletions

View File

@@ -1,6 +1,10 @@
import { expect, test } from "@playwright/test";
test("VRT", async ({ page }) => {
await page.goto("/");
await expect(page).toHaveScreenshot();
});
// 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();
});
}