Skip to content

Commit a60783e

Browse files
Bill LeoutsakosBill Leoutsakos
authored andcommitted
test(integrations): cover Jira connection fallback after availability failure
1 parent 629f201 commit a60783e

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

apps/sim/app/workspace/[workspaceId]/integrations/[block]/integration-block-detail.test.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,14 @@ describe('IntegrationBlockDetail header action', () => {
168168
expect(headerAction()).toBe('chip:Add to Sim')
169169
})
170170

171+
it('offers both connection options when an OAuth integration availability request fails', () => {
172+
availabilityState.availability = null
173+
availabilityState.isLoading = false
174+
mount(OAUTH_WITH_SERVICE_ACCOUNT)
175+
176+
expect(headerAction()).toBe('dropdown:Add to Sim')
177+
})
178+
171179
/**
172180
* "Unavailable" is a verdict about a connection the deployment grants. An
173181
* integration authenticated by a stored service account still runs on the

0 commit comments

Comments
 (0)