mirror of
https://github.com/ershisan99/DevToysWeb.git
synced 2025-12-16 20:49:23 +00:00
test: use Docker for playwright tests
This commit is contained in:
@@ -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 |
BIN
tests/app/page.spec.ts-snapshots/VRT-1-chromium-linux.png
Normal file
BIN
tests/app/page.spec.ts-snapshots/VRT-1-chromium-linux.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 61 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 90 KiB |
BIN
tests/app/page.spec.ts-snapshots/VRT-1-firefox-linux.png
Normal file
BIN
tests/app/page.spec.ts-snapshots/VRT-1-firefox-linux.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 87 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 79 KiB |
BIN
tests/app/page.spec.ts-snapshots/VRT-1-webkit-linux.png
Normal file
BIN
tests/app/page.spec.ts-snapshots/VRT-1-webkit-linux.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 56 KiB |
Reference in New Issue
Block a user