Skip to content

Commit c85d67e

Browse files
committed
test(assistant-actions): expect a disabled Connect integration on unavailable Salesforce
With the member option disabled and no Salesforce OAuth client configured in the lane, the workspace app is unconfigured and offers no method, so the details page renders its unavailableReason branch: Connect integration, disabled, naming why. That is the intended product behaviour; the check asserted the button was absent.
1 parent ade7c61 commit c85d67e

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
@@ -843,8 +843,9 @@ try {
843843
await expect(
844844
page.getByRole('region', { name: 'Connected credentials', exact: true }).getByRole('link')
845845
).toHaveCount(0)
846-
// With no connectable option left the page offers no connection at all.
847-
await expect(connectIntegration).toHaveCount(0)
846+
// No member method is left and this deployment configures no Salesforce client for the
847+
// workspace, so the page keeps Connect integration only as a disabled control naming why.
848+
await expect(connectIntegration).toBeDisabled()
848849
await capture('integration-disabled-app-empty')
849850
} finally {
850851
await sql`update credential set managed_oauth_status = 'active' where id = ${nativeCredentialId}`

0 commit comments

Comments
 (0)