Skip to content

Commit a69857a

Browse files
committed
test(assistant-actions): follow the page back to the remaining account after a disconnect
1 parent d0e0ea6 commit a69857a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎apps/sim/scripts/test-assistant-actions-e2e.ts‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -693,6 +693,10 @@ try {
693693
await confirmation.getByRole('button', { name: 'Disconnect', exact: true }).click()
694694
assert.equal((await disconnected).status(), 200)
695695
await expect(confirmation).toBeHidden()
696+
await expect(page).toHaveURL((url) => !url.searchParams.has('account'))
697+
await expect(page.getByText('launch-team@acme.example', { exact: true })).toHaveCount(0)
698+
await expect(page.getByText('taylor@acme.example', { exact: true })).toBeVisible()
699+
await page.goto(selectedUrl)
696700
await expect(
697701
page.getByText('This account is no longer connected.', { exact: true })
698702
).toBeVisible()

0 commit comments

Comments
 (0)