-
Notifications
You must be signed in to change notification settings - Fork 320
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce skeleton for integration tests
- Loading branch information
1 parent
1233d3b
commit e15d124
Showing
3 changed files
with
46 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ | |
'@clerk/types': patch | ||
--- | ||
|
||
Navigate to after-auth tasks | ||
Navigate to session tasks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import { appConfigs } from '../presets'; | ||
import { testAgainstRunningApps } from '../testUtils'; | ||
|
||
// TODO ORGS-566 - write integration tests for after-auth flow | ||
testAgainstRunningApps({ withEnv: [appConfigs.envs.withEmailCodes] })('after-auth flows @generic @nextjs', () => { | ||
describe('after sign-in', () => { | ||
// /sign-in -> /sign-in/select-organization | ||
it.todo('navigates to tasks'); | ||
|
||
// /sign-in -> /sign-in/select-organization -> /app (after-sign-in URL) | ||
it.todo('navigates to after-sign-in URL when tasks get resolved'); | ||
|
||
// with session status pending -> accesses /sign-in -> redirects to /sign-in/select-organization | ||
it.todo('on single-session mode, sign-in redirects back to tasks when accessed with a pending session'); | ||
}); | ||
|
||
describe('after sign-up', () => { | ||
// /sign-up -> /sign-up/select-organization | ||
it.todo('navigates to tasks'); | ||
|
||
// /sign-up -> /sign-up/select-organization -> /app/welcome (after-sign-up URL) | ||
it.todo('navigates to after-sign-up URL when tasks get resolved'); | ||
|
||
// with session status pending -> accesses /sign-up -> redirects to /sign-up/select-organization | ||
it.todo('on single-session mode, sign-up redirects back to tasks when accessed with a pending session'); | ||
}); | ||
|
||
describe('middle app', () => { | ||
// /my-dashboard/recipes -> /sign-in/select-organization | ||
it.todo('on session transition to pending with tasks, redirects to tasks'); | ||
|
||
// /my-dashboard/recipes -> /sign-in/select-organization -> /my-dashboard/recipes | ||
it.todo('navigates to middle app origin when tasks get resolved'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters