fix: 브라우저 게이트를 초록으로(Studio mock·화면 도착 처리·부팅 실패 청크·visual 기준·WebKit 경합) #8
@@ -19,10 +19,13 @@ test("restores the scroll position when navigating back", async ({ page }) => {
|
||||
await page.evaluate(() => window.scrollTo(0, 900));
|
||||
await expect.poll(() => scrollY(page)).toBe(900);
|
||||
|
||||
// TechLog's header is not sticky, so a real click first scrolls up to the
|
||||
// link and the reader leaves from the top. The click is dispatched where the
|
||||
// reader is, so the page is left at 900.
|
||||
await page
|
||||
.getByRole("navigation", { name: "주요 탐색" })
|
||||
.getByRole("link", { name: "프로젝트" })
|
||||
.click();
|
||||
.dispatchEvent("click");
|
||||
await expect(heading).toHaveText("프로젝트");
|
||||
await expect.poll(() => scrollY(page)).toBe(0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user