From ba3b303d3f78c89d9b77bfc90a5d96591cda25ad Mon Sep 17 00:00:00 2001 From: Korbinian Eckstein Date: Fri, 26 Jan 2024 15:36:29 +0100 Subject: [PATCH] playwright github workflow --- .github/workflows/playwright.yml | 4 +--- niivue/playwright.config.ts | 12 ++++++------ 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index f4265ec..d7cad14 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -14,10 +14,8 @@ jobs: with: node-version: 18 - name: Install dependencies - run: npm install && npm ci + run: npm ci working-directory: ./niivue - - name: Start Webview - run: yarn start:webview & - name: Install Playwright Browsers run: npx playwright install --with-deps working-directory: ./niivue diff --git a/niivue/playwright.config.ts b/niivue/playwright.config.ts index 301801e..5a9fb4f 100644 --- a/niivue/playwright.config.ts +++ b/niivue/playwright.config.ts @@ -69,9 +69,9 @@ export default defineConfig({ ], /* Run your local dev server before starting the tests */ - // webServer: { - // command: 'npm run start', - // url: 'http://127.0.0.1:3000', - // reuseExistingServer: !process.env.CI, - // }, -}); + webServer: { + command: 'yarn start', + url: 'http://127.0.0.1:4000', + reuseExistingServer: !process.env.CI, + }, +})