test: update e2e to pull letter

This commit is contained in:
ramvignesh-b
2026-04-22 17:35:11 +05:30
parent 6aff578ca5
commit 3cd516039a
+3 -2
View File
@@ -198,10 +198,11 @@ test.describe("Letter Drafting (Real Backend)", () => {
await page.getByAltText("Seal").waitFor({ state: "visible" });
await page.getByAltText("Seal").click({ force: true });
await page.locator("#letter").click();
// Click the letter to pull it out
await page.locator("#letter").click({ force: true });
// Wait for reveal transition
await expect(page.locator("#letter")).toBeHidden({ timeout: 10000 });
await expect(page.locator("#letter")).toBeHidden({ timeout: 15000 });
// Also check if we are redirected to the Reader if we manually go to the Editor URL
const readerUrl = page.url();