Update run-e2e.yaml (#8620)

This commit is contained in:
Yunus M 2025-07-26 16:37:31 +05:30 committed by GitHub
parent f9db796489
commit 2639f975ee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -27,26 +27,29 @@ jobs:
with:
node-version: lts/*
- name: Install dependencies
run: npm install -g yarn && yarn
- name: Install Playwright Browsers
run: yarn playwright install --with-deps
- name: Mask secrets and inputs
- name: Mask secrets and input
run: |
echo "::add-mask::${{ secrets.E2E_TENANT_BASE_URL }}"
echo "::add-mask::${{ secrets.E2E_USER_EMAIL }}"
echo "::add-mask::${{ secrets.E2E_USER_PASSWORD }}"
echo "::add-mask::${{ secrets.BASE_URL }}"
echo "::add-mask::${{ secrets.LOGIN_USERNAME }}"
echo "::add-mask::${{ secrets.LOGIN_PASSWORD }}"
echo "::add-mask::${{ github.event.inputs.userRole }}"
- name: Run Playwright Tests
- name: Install dependencies
working-directory: frontend
run: |
echo "✅ Starting Playwright tests..."
npm install -g yarn
yarn
BASE_URL="${{ secrets.E2E_TENANT_BASE_URL }}" \
LOGIN_USERNAME="${{ secrets.E2E_USER_EMAIL }}" \
LOGIN_PASSWORD="${{ secrets.E2E_USER_PASSWORD }}" \
- name: Install Playwright Browsers
working-directory: frontend
run: yarn playwright install --with-deps
- name: Run Playwright Tests
working-directory: frontend
run: |
BASE_URL="${{ secrets.BASE_URL }}" \
LOGIN_USERNAME="${{ secrets.LOGIN_USERNAME }}" \
LOGIN_PASSWORD="${{ secrets.LOGIN_PASSWORD }}" \
USER_ROLE="${{ github.event.inputs.userRole }}" \
yarn playwright test
@ -55,5 +58,5 @@ jobs:
if: always()
with:
name: playwright-report
path: playwright-report/
path: frontend/playwright-report/
retention-days: 30