From f7be31f84b950ccb2ad02474e92363c1d5e8ec02 Mon Sep 17 00:00:00 2001 From: Carlos Santos <4a.santos@gmail.com> Date: Wed, 11 Jun 2025 18:02:35 +0200 Subject: [PATCH] ci: add E2E UI Features Tests workflow --- .github/workflows/wc-e2e-test.yaml | 32 ++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/.github/workflows/wc-e2e-test.yaml b/.github/workflows/wc-e2e-test.yaml index 6694f64..795a9f1 100644 --- a/.github/workflows/wc-e2e-test.yaml +++ b/.github/workflows/wc-e2e-test.yaml @@ -45,6 +45,38 @@ jobs: uses: OpenVidu/actions/cleanup@main + e2e-ui-features-test: + name: E2E UI Features Tests + runs-on: ov-actions-runner + steps: + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '22.13' + - name: Setup OpenVidu Local Deployment + uses: OpenVidu/actions/start-openvidu-local-deployment@main + - name: Setup OpenVidu Meet + uses: OpenVidu/actions/start-openvidu-meet@main + env: + MEET_WEBHOOK_ENABLED: true + - name: Start OpenVidu Meet Testapp + uses: OpenVidu/actions/start-openvidu-meet-testapp@main + - name: Run tests + run: | + cd frontend/webcomponent + # Install Playwright browsers + mkdir -p /tmp/ms-playwright + PLAYWRIGHT_BROWSERS_PATH=/tmp/ms-playwright npx playwright install --with-deps chromium + npm run test:e2e-ui-features + env: + RUN_MODE: CI + PLAYWRIGHT_BROWSERS_PATH: /tmp/ms-playwright + - name: Upload failed test videos + if: always() + uses: actions/upload-artifact@v4 + with: + name: test-videos + webcomponent-e2e-test: name: WebComponent E2E Tests