Skip to content

Fix loader logic in group controls #3542

Fix loader logic in group controls

Fix loader logic in group controls #3542

Workflow file for this run

name: E2E Tests
on:
pull_request:
branches-ignore:
- 'weblate-**'
workflow_dispatch:
inputs:
distinct_id:
description: 'for the return-dispatch action'
required: false
control-api:
description: 'custom control-api version'
data-api:
description: 'custom data-api version'
us:
description: 'custom us version'
env:
CONTROL_API_VERSION: ${{github.event.inputs.control-api}}
DATA_API_VERSION: ${{github.event.inputs.data-api}}
US_VERSION: ${{github.event.inputs.us}}
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
run-e2e:
name: Install Datalens and Run E2E Tests
runs-on: ubuntu-latest
steps:
- name: echo distinct ID ${{ github.event.inputs.distinct_id }}
run: echo ${{ github.event.inputs.distinct_id }}
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 20
cache: 'npm'
cache-dependency-path: ./package-lock.json
- name: Check Docker Compose Config
working-directory: ./tests
run: docker compose -f ./docker-compose.e2e.yml config
- name: Run Docker Compose and Install dependencies for Datalens-UI
working-directory: ./tests
run: |
sudo rm /etc/apt/sources.list.d/microsoft-prod.list
sudo apt-get update
docker compose -f ./docker-compose.e2e.yml up -d & cd .. && npm ci && npm run test:install:chromium & wait
- name: Run Test
run: E2E_DOMAIN="http://localhost:8080" E2E_RETRY_TIMES=1 NO_AUTH=true npm run test:e2e:opensource
- name: Run Docker Shutdown
working-directory: ./tests
run: docker compose -f ./docker-compose.e2e.yml down
- name: Save report link and pr
if: always()
run: |
echo "reports/${{ github.head_ref || github.ref_name }}/${{ github.run_id }}/${{ github.run_attempt }}" > ./tests/artifacts/report-link
echo "${{ github.event.pull_request.number }}" > ./tests/artifacts/report-pr
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: ./tests/artifacts/
retention-days: 30