mirror of
https://github.com/block/buzz.git
synced 2026-10-29 13:31:44 +00:00
test(desktop): commit forum draft clears before navigation
Signed-off-by: Logan Johnson <loganj@squareup.com>
This commit is contained in:
@@ -430,7 +430,11 @@ for (const stage of ["add", "publish"] as const) {
|
||||
await expect(
|
||||
page.getByRole("button", { name: "Remove attachment" }),
|
||||
).toBeVisible();
|
||||
if (replacement !== null)
|
||||
if (replacement === "") {
|
||||
await page.getByTestId("message-input").press("ControlOrMeta+a");
|
||||
await page.getByTestId("message-input").press("Backspace");
|
||||
await expect(page.getByTestId("message-input")).toBeEmpty();
|
||||
} else if (replacement !== null)
|
||||
await page.getByTestId("message-input").fill(replacement);
|
||||
await navigate(1);
|
||||
await releaseForumGate(page);
|
||||
|
||||
Reference in New Issue
Block a user