From 3d8ccdf23d75ac6fb3690e471b752642fbebaa8b Mon Sep 17 00:00:00 2001 From: Dominik Vagner Date: Tue, 20 May 2025 15:06:33 +0200 Subject: [PATCH] build: add testing proxy to playwright CI This PR switches the playwright test in CI to use the consoledot testing proxy instead of the development one in fec. This should result in faster and more stable tests. --- .github/workflows/playwright.yml | 9 ++++++--- config/routes.json | 3 +++ 2 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 config/routes.json diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index 6398d940..93d1cedc 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -31,7 +31,7 @@ jobs: uses: actions/setup-node@v4 with: node-version: 20 - cache: 'npm' + cache: "npm" - name: Install front-end dependencies run: npm ci @@ -48,8 +48,11 @@ jobs: - name: Start front-end server run: | - npm run start:stage & - npx wait-on https://localhost:1337 + npm run start:federated & + npx wait-on http://localhost:8003/apps/image-builder/ + + - name: Run testing proxy + run: docker run -d --network=host -e HTTPS_PROXY=$RH_PROXY_URL -v "$(pwd)/config:/config:ro,Z" --name consoledot-testing-proxy quay.io/dvagner/consoledot-testing-proxy - name: Run front-end Playwright tests env: diff --git a/config/routes.json b/config/routes.json new file mode 100644 index 00000000..d848f79e --- /dev/null +++ b/config/routes.json @@ -0,0 +1,3 @@ +{ + "/apps/image-builder*": { "url": "http://127.0.0.1:8003" } +}