Remove title field from notes and update tests to reflect changes
Refactors the notes feature by removing the `title` field and updating all related tests and UI components to use `content` instead. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 77cfe984-2c65-4152-bb7a-0df28274fe66 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: 7464969c-726a-4ec2-a3b2-8ff63f91f6ed Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/c3c252e4-c83d-40ca-9fff-99a3ea60701e/77cfe984-2c65-4152-bb7a-0df28274fe66/591TuZw Replit-Helium-Checkpoint-Created: true
This commit is contained in:
@@ -118,10 +118,8 @@ test("recipient sees a popup modal when a note arrives in real time", async ({
|
||||
await senderPage.goto("/notes");
|
||||
await expect(senderPage.getByTestId("notes-page")).toBeVisible();
|
||||
|
||||
const noteTitle = `Popup Note ${uniq()}`;
|
||||
const noteContent = "Drop everything and read this.";
|
||||
const noteContent = `Drop everything and read this. ${uniq()}`;
|
||||
await senderPage.getByTestId("notes-composer-open").click();
|
||||
await senderPage.getByTestId("notes-composer-title").fill(noteTitle);
|
||||
await senderPage.getByTestId("notes-composer-content").fill(noteContent);
|
||||
const createPromise = senderPage.waitForResponse(
|
||||
(r) =>
|
||||
@@ -167,7 +165,6 @@ test("recipient sees a popup modal when a note arrives in real time", async ({
|
||||
const popup = recipientPage.getByTestId("incoming-note-popup");
|
||||
await expect(popup).toBeVisible({ timeout: 3_000 });
|
||||
expect(Date.now() - sendCompletedAt).toBeLessThan(3_000);
|
||||
await expect(popup).toContainText(noteTitle);
|
||||
await expect(popup).toContainText(noteContent);
|
||||
await expect(popup).toContainText(sender.displayEn);
|
||||
// Floating card — NOT a modal: must not render as an alertdialog
|
||||
@@ -252,10 +249,8 @@ test("sender sees a floating reply card when the recipient replies", async ({
|
||||
await senderPage.goto("/notes");
|
||||
await expect(senderPage.getByTestId("notes-page")).toBeVisible();
|
||||
|
||||
const noteTitle = `Reply Note ${uniq()}`;
|
||||
const noteContent = "Please reply with your thoughts.";
|
||||
const noteContent = `Please reply with your thoughts. ${uniq()}`;
|
||||
await senderPage.getByTestId("notes-composer-open").click();
|
||||
await senderPage.getByTestId("notes-composer-title").fill(noteTitle);
|
||||
await senderPage.getByTestId("notes-composer-content").fill(noteContent);
|
||||
const createPromise = senderPage.waitForResponse(
|
||||
(r) =>
|
||||
@@ -403,9 +398,7 @@ test("recipient popup renders checklist items for a checklist note", async ({
|
||||
await senderPage.goto("/notes");
|
||||
await expect(senderPage.getByTestId("notes-page")).toBeVisible();
|
||||
|
||||
const noteTitle = `Checklist Note ${uniq()}`;
|
||||
await senderPage.getByTestId("notes-composer-open").click();
|
||||
await senderPage.getByTestId("notes-composer-title").fill(noteTitle);
|
||||
// Switch composer to checklist mode and add two items.
|
||||
await senderPage.getByTestId("notes-composer-kind-toggle").click();
|
||||
const list = senderPage.getByTestId("notes-composer-checklist-list");
|
||||
@@ -462,7 +455,6 @@ test("recipient popup renders checklist items for a checklist note", async ({
|
||||
|
||||
const popup = recipientPage.getByTestId("incoming-note-popup");
|
||||
await expect(popup).toBeVisible({ timeout: 5_000 });
|
||||
await expect(popup).toContainText(noteTitle);
|
||||
// Checklist branch: dedicated container is rendered, with each item
|
||||
// as a row, and the plain text content branch is NOT used.
|
||||
const checklist = recipientPage.getByTestId(
|
||||
|
||||
Reference in New Issue
Block a user