Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(chat): verify cancelled rename persists after reload

Steven Enamakelbfd7c776a812
diff --git a/app/test/playwright/specs/chat-thread-list-lifecycle.spec.ts b/app/test/playwright/specs/chat-thread-list-lifecycle.spec.ts
index 1341185808..893bb2fae2 100644
--- a/app/test/playwright/specs/chat-thread-list-lifecycle.spec.ts
+++ b/app/test/playwright/specs/chat-thread-list-lifecycle.spec.ts
@@ -191,6 +191,14 @@ test.describe('Chat thread list — create, deep link, rename, delete', () => {
'this-must-not-stick-5t8y1u'
);
await expect(page.getByTestId(`thread-row-${threadId}`)).toContainText(titleBefore);
+
+ await page.reload();
+ await waitForAppReady(page);
+ await dismissWalkthroughIfPresent(page);
+ await expect(page.getByTestId(`thread-row-${threadId}`)).toContainText(titleBefore);
+ await expect(page.getByTestId(`thread-row-${threadId}`)).not.toContainText(
+ 'this-must-not-stick-5t8y1u'
+ );
});
test('deleting a thread asks for confirmation and removes the row', async ({ page }) => {