From 198021a665c177b2e01019cc0644ef50e1b3506b Mon Sep 17 00:00:00 2001 From: Davorin Rusevljan Date: Tue, 12 Nov 2024 14:54:26 +0000 Subject: [PATCH] playwright coverage WIP2(6) --- .github/workflows/test-playwright.yaml | 3 --- playwright.llm-sans.config.ts | 8 +++++++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test-playwright.yaml b/.github/workflows/test-playwright.yaml index 0c7e8a01..2f7f88df 100644 --- a/.github/workflows/test-playwright.yaml +++ b/.github/workflows/test-playwright.yaml @@ -103,14 +103,11 @@ jobs: id: fastagency-start run: | # Start fastagency and grab its pid - # export COVERAGE_PROCESS_START nohup gunicorn --workers=1 e2e.llm-sans.main:app >nohup.txt 2>nohup-error.txt & # Get the process ID (PID) FAST_PID=$! echo "Started fastagency with PID: $FAST_PID" echo "FAST_PID=$FAST_PID" >> $GITHUB_OUTPUT - echo "Sleeping for 5 seconds to let fastagency start up..." - sleep 5 env: COVERAGE_PROCESS_START: "e2e/playwright.coverage.cfg" - run: echo "obtained FAST_PID" ${{ steps.fastagency-start.outputs.FAST_PID}} diff --git a/playwright.llm-sans.config.ts b/playwright.llm-sans.config.ts index c513d28a..60a9b2fb 100644 --- a/playwright.llm-sans.config.ts +++ b/playwright.llm-sans.config.ts @@ -3,5 +3,11 @@ import { defineConfig } from "./e2e/playwright.base.config.ts"; export default defineConfig( { testDir: './e2e/llm-sans', - } + webServer: { + command: 'fastagency run e2e/llm-sans/main.py', + url: 'http://127.0.0.1:32123', + // env: testEnv, + reuseExistingServer: true, + }, + }, )