Skip to content

Commit 5a1b023

Browse files
committed
test(org): open the conversation before deleting the open chat
Deleting before the conversation mounted made its first read a 404 for a chat already gone. Health stays strict: no allow, so a read fired by a settled view still fails the run.
1 parent edeede4 commit 5a1b023

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • apps/sim/scripts/org-redesign-e2e/checks

‎apps/sim/scripts/org-redesign-e2e/checks/sidebar.ts‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -672,6 +672,10 @@ export async function sidebarChecks() {
672672
await check('deleting the open chat returns to where its mode lives', async () => {
673673
await withSession(MEMBER, async ({ page }) => {
674674
await page.goto(orgUrl(`/search/chat/${MEMBER_CHATS.removable.id}`))
675+
// A conversation mounting after the delete reads a chat that is gone; open it first.
676+
await expect(
677+
page.getByText(`Here is what I found about ${MEMBER_CHATS.removable.title}.`)
678+
).toBeVisible()
675679
await openRowMenu(page, MEMBER_CHATS.removable.title)
676680
await menuEntry(page, 'Delete').click()
677681
const modal = dialog(page, 'Delete chat')

0 commit comments

Comments
 (0)