From 7d9ab7bef8e63ad41a49123244f53c9f90f56c8e Mon Sep 17 00:00:00 2001 From: TristanHoladay <40547442+TristanHoladay@users.noreply.github.com> Date: Fri, 1 Nov 2024 14:34:48 -0600 Subject: [PATCH] update incluster config --- ui/package.json | 2 +- ui/playwright.config.ts | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ui/package.json b/ui/package.json index ccbb39df..7a1e1977 100644 --- a/ui/package.json +++ b/ui/package.json @@ -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", diff --git a/ui/playwright.config.ts b/ui/playwright.config.ts index 2e728ac5..65ce796d 100644 --- a/ui/playwright.config.ts +++ b/ui/playwright.config.ts @@ -37,7 +37,7 @@ 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}/`, }, @@ -45,6 +45,7 @@ const localAuth = { const inCluster = { name: 'in-cluster', + globalSetup: './tests/global-setup', timeout: 10 * 1000, testDir: 'tests', /* Run tests in files in parallel */ @@ -53,6 +54,7 @@ const inCluster = { testMatch: /^(?!.*local-auth|.*reconnect)(.+\.)?(test|spec)\.[jt]s$/, use: { baseURL: `${protocol}://${host}/`, + storageState: './tests/state.json', }, }