T46 E2E: typing proven by inked pixels, home frames proven mounted before their claims, full screen measured, window captures decoded

This commit is contained in:
ZacharyZhang-NY committed 2026-10-01 08:38:05 -04:00
1 parent 4587d1f251
commit 033c41c5cc
2 files changed
+32 -4

No files matched your search

+4 -1
View File
@@ -109,5 +109,8 @@ test("a story the web cannot run shows its native capture, in the site's mode",
test("a live story that opens a window shows that window natively", async ({ page }) => {
await page.goto("/components/shell/aboutdialog/");
await expect(page.locator(".live iframe")).toHaveCount(1);
await expect(page.locator(".windows img.shot")).toHaveAttribute("srcset", /shell-about-window/);
const shot = page.locator(".windows img.shot");
await expect(shot).toHaveAttribute("srcset", /shell-about-window/);
await shot.scrollIntoViewIfNeeded();
await expect.poll(() => shot.evaluate((img: HTMLImageElement) => img.naturalWidth)).toBeGreaterThan(0);
});