Skip to content

Commit

Permalink
update incluster config
Browse files Browse the repository at this point in the history
  • Loading branch information
TristanHoladay committed Nov 1, 2024
1 parent c3b2f51 commit 7d9ab7b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"lint": "prettier --check . && eslint .",
"format": "prettier --write .",
"test:local-auth": "TEST_CFG=localAuth playwright test tests/local-auth.spec.ts",
"test:local-auth": "TEST_CFG=localAuth playwright test",
"test:reconnect": "TEST_CFG=reconnect playwright test",
"test:e2e": "TEST_CFG=default playwright test",
"test:e2e-in-cluster": "TEST_CFG=inCluster playwright test",
Expand Down
4 changes: 3 additions & 1 deletion ui/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,15 @@ const localAuth = {
testDir: 'tests',
fullyParallel: false,
retries: process.env.CI ? 2 : 1,
testMatch: /(.+\.)?(test|spec)\.[jt]s/,
testMatch: 'local-auth.spec.ts',
use: {
baseURL: `https://runtime-local.uds.dev:${port}/`,
},
}

const inCluster = {
name: 'in-cluster',
globalSetup: './tests/global-setup',
timeout: 10 * 1000,
testDir: 'tests',
/* Run tests in files in parallel */
Expand All @@ -53,6 +54,7 @@ const inCluster = {
testMatch: /^(?!.*local-auth|.*reconnect)(.+\.)?(test|spec)\.[jt]s$/,
use: {
baseURL: `${protocol}://${host}/`,
storageState: './tests/state.json',
},
}

Expand Down

0 comments on commit 7d9ab7b

Please sign in to comment.