-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ui): broken playwright authentication for cleanup (#1016)
- Loading branch information
1 parent
8fbe561
commit 6d17187
Showing
12 changed files
with
111 additions
and
57 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
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
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 |
---|---|---|
|
@@ -17,11 +17,13 @@ SUPABASE_AUTH_KEYCLOAK_SECRET=<secret> | |
#ORIGIN=http://localhost:3000 # set if running in Docker locally (variable is also used in deployment) | ||
|
||
#If specified, app will use OpenAI instead of LeapfrogAI | ||
OPENAI_API_KEY= | ||
#OPENAI_API_KEY= | ||
|
||
# PLAYWRIGHT | ||
USERNAME=[email protected] | ||
PASSWORD=<password> | ||
# MFA secret is only needed when running playwright tests locally. In the workflow, the keycloak user | ||
# is created without MFA requirements | ||
MFA_SECRET=<secret> | ||
# Service Role key comes from Supabase and allows Playwright to bypass row level security for test setup/cleanup. This is only needed for tests. | ||
SERVICE_ROLE_KEY=<key> | ||
SERVICE_ROLE_KEY=<key> |
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
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
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,2 @@ | ||
export const supabaseUsername = '[email protected]'; | ||
export const supabasePassword = 'fakepass'; |
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
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
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 |
---|---|---|
@@ -1,11 +1,10 @@ | ||
import { test as teardown } from './fixtures'; | ||
import { test } from '@playwright/test'; | ||
import { cleanup } from './helpers/cleanup'; | ||
import { getOpenAIClient } from './fixtures'; | ||
|
||
// teardown not necessary in CI testing envs | ||
if (process.env.TEST_ENV !== 'CI') { | ||
teardown('teardown', async ({ openAIClient }) => { | ||
console.log('cleaning up...'); | ||
await cleanup(openAIClient); | ||
console.log('clean up complete'); | ||
}); | ||
} | ||
test('teardown', async () => { | ||
const openAIClient = await getOpenAIClient(); | ||
console.log('cleaning up...'); | ||
await cleanup(openAIClient); | ||
console.log('clean up complete'); | ||
}); |
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
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
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