Playwright/E2E: Upgrade to playwright@1.43 and its dependencies (#26833)

* chore: upgrade to playwright@1.43 and its dependencies

* fix lint

* attempt to fix lint error on console
Этот коммит содержится в:
Saturnino Abril
2024-04-23 06:58:49 +08:00
коммит произвёл GitHub
родитель 22d72b6df8
Коммит 20825101a4
18 изменённых файлов: 410 добавлений и 405 удалений

Просмотреть файл

@@ -224,7 +224,7 @@ $(if mme2e_is_token_in_list "webhook-interactions" "$ENABLED_DOCKER_SERVICES"; t
$(if mme2e_is_token_in_list "playwright" "$ENABLED_DOCKER_SERVICES"; then
echo '
playwright:
image: mcr.microsoft.com/playwright:v1.42.1-jammy
image: mcr.microsoft.com/playwright:v1.43.0-jammy
entrypoint: ["/bin/bash", "-c"]
command: ["until [ -f /var/run/mm_terminate ]; do sleep 5; done"]
env_file:

Просмотреть файл

@@ -12,6 +12,10 @@ mkdir -p logs
touch logs/mattermost.log
EOF
# Install webapp dependencies
mme2e_log "Prepare Playwright: install webapp dependencies"
${MME2E_DC_SERVER} exec -T -u "$MME2E_UID" -- playwright bash -c "cd webapp && npm install --cache /tmp/empty-cache"
# Install Playwright dependencies
mme2e_log "Prepare Playwright: install dependencies"
${MME2E_DC_SERVER} exec -T -u "$MME2E_UID" -- playwright bash -c "cd e2e-tests/playwright && rm -rf node_modules && PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 npm install --cache /tmp/empty-cache"