Skip to content

Commit 03cf868

Browse files
committed
test(e2e): expect no Reconnect on an account whose provider has no OAuth client
The account page offers Reconnect only on an account that can reconnect (Emir's conditional action, restored in 9d9dcb8). The assistant-actions deployment configures no Salesforce or Jira client, so its seeded accounts show Disconnect alone.
1 parent 59753dc commit 03cf868

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,8 @@ try {
608608
await expect(connectIntegration).toHaveCount(0)
609609
const policy = page.getByRole('group', { name: 'Create Task in Salesforce permission' })
610610
await expect(policy).toBeVisible({ timeout: 180_000 })
611-
await expect(page.getByRole('button', { name: 'Reconnect', exact: true })).toBeVisible()
611+
// This deployment has no Salesforce or Jira OAuth client, so its accounts cannot reconnect.
612+
await expect(page.getByRole('button', { name: 'Reconnect', exact: true })).toHaveCount(0)
612613
await capture('integration-account-actions')
613614
await page.getByRole('button', { name: 'Disconnect', exact: true }).click()
614615
const confirmation = page.getByRole('dialog', {
@@ -704,7 +705,7 @@ try {
704705
await expect(
705706
page.getByRole('heading', { name: 'launch-team@acme.example', exact: true })
706707
).toBeVisible()
707-
await expect(page.getByRole('button', { name: 'Reconnect', exact: true })).toBeVisible()
708+
await expect(page.getByRole('button', { name: 'Reconnect', exact: true })).toHaveCount(0)
708709
await capture('integration-selected-account-actions')
709710
await page.getByRole('button', { name: 'Disconnect', exact: true }).click()
710711
const confirmation = page.getByRole('dialog', {

0 commit comments

Comments
 (0)