mirror of
https://github.com/ramvignesh-b/pi-ku.git
synced 2026-05-04 08:56:52 +00:00
feat: redesign reader page and disable canvas object caching for improved rendering
This commit is contained in:
@@ -174,14 +174,9 @@ test.describe("Letter Drafting (Real Backend)", () => {
|
||||
timeout: 10000,
|
||||
});
|
||||
await expect(
|
||||
page.getByText(new RegExp(`A sealed message for ${recipientName}`, "i")),
|
||||
page.getByText(new RegExp(`A sealed letter for ${recipientName}`, "i")),
|
||||
).toBeVisible();
|
||||
|
||||
// Verify content is decrypted (using author's masterKey automatically)
|
||||
await expect(page.getByText(/decrypting/i)).toBeHidden();
|
||||
// In the Reader, we check if the recipient name is visible in the Reader header.
|
||||
await expect(page.getByText(/Drawer Test Recipient/i)).toBeVisible();
|
||||
|
||||
// Also check if we are redirected to the Reader if we manually go to the Editor URL
|
||||
const readerUrl = page.url();
|
||||
const quillUrl = readerUrl.replace("/read/", "/quill/");
|
||||
@@ -192,6 +187,5 @@ test.describe("Letter Drafting (Real Backend)", () => {
|
||||
|
||||
// It should redirect back to the reader
|
||||
await expect(page).toHaveURL(readerUrl);
|
||||
await expect(page.getByText(/Drawer Test Recipient/i)).toBeVisible();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user