2026-04-13
This commit is contained in:
parent
d50de6d534
commit
08ad871e0c
9 changed files with 320 additions and 293 deletions
|
|
@ -37,13 +37,15 @@ Array.from<TestPage>([
|
|||
},
|
||||
]).forEach(({ pageName, url }) => {
|
||||
test.skip(pageName, async ({ page }, testInfo) => {
|
||||
await page["goto"](url);
|
||||
await page.goto(url);
|
||||
|
||||
const projectName = testInfo.project.name;
|
||||
const timestamp: string = genTimestamp();
|
||||
const viewport = page.viewportSize();
|
||||
const viewportSize = page.viewportSize() ?? { height: 0, width: 0 };
|
||||
|
||||
const captureName = `${pageName}/${projectName}-${viewport?.width}-${viewport?.height} ${timestamp}.png`;
|
||||
const captureName = `${pageName}/${projectName}-${String(viewportSize.width)}-${
|
||||
String(viewportSize.height)
|
||||
} ${timestamp}.png`;
|
||||
|
||||
await takeFullPageScreenshot(page, captureName);
|
||||
await expect(page).toHaveURL(url);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue