fix: complete TechLog migration evidence

This commit is contained in:
DongHyeonka
2026-08-16 04:55:52 +09:00
parent 6c2780b7a7
commit 3a7c5deca0
81 changed files with 1492 additions and 345 deletions
+17
View File
@@ -3,10 +3,15 @@ import {
gotoTechLog,
TECH_LOG_BREAKPOINT_WIDTHS,
TECH_LOG_CANONICAL_ROUTES,
TECH_LOG_PUBLIC_FIXTURE_PATHS,
TECH_LOG_STUDIO_STATE_PATHS,
TECH_LOG_UNKNOWN_PUBLIC_PATHS,
} from "../support/browser/tech-log-fixtures.ts";
function fixtureSnapshotName(path: string) {
return `tech-log-public-fixture-${path.slice(1).replaceAll("/", "-")}-1440.png`;
}
for (const route of TECH_LOG_CANONICAL_ROUTES) {
for (const width of [360, 1440] as const) {
test(`${route.routeId} matches the reviewed ${width}px visual`, async ({ page }) => {
@@ -19,6 +24,18 @@ for (const route of TECH_LOG_CANONICAL_ROUTES) {
}
}
for (const path of TECH_LOG_PUBLIC_FIXTURE_PATHS) {
test(`known Public fixture ${path} matches its reviewed wide visual`, async ({
page,
}) => {
await page.setViewportSize({ width: 1440, height: 1000 });
await gotoTechLog(page, path);
await expect(page).toHaveScreenshot(fixtureSnapshotName(path), {
fullPage: true,
});
});
}
for (const width of TECH_LOG_BREAKPOINT_WIDTHS) {
test(`Public home matches the reviewed ${width}px breakpoint visual`, async ({ page }) => {
await page.setViewportSize({ width, height: 1000 });