E2E/Playwright: Upgrade playwright/dependencies and test server config (#26464)
* chore: upgrade playwright and test server config * add post install script * update config types * fix visual test
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
297135c5b4
Коммит
53471c7e8c
@@ -14,7 +14,20 @@ EOF
|
||||
|
||||
# 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 && npm install --cache /tmp/empty-cache"
|
||||
${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"
|
||||
|
||||
mme2e_log "Prepare Playwright: environment info"
|
||||
${MME2E_DC_SERVER} exec -T -u "$MME2E_UID" -- playwright bash <<"EOF"
|
||||
cat <<INNEREOF
|
||||
debian = $(cat /etc/debian_version)
|
||||
uname = $(uname -m)
|
||||
node = $(node -v)
|
||||
npm = $(npm -v)
|
||||
playwright = $(cd e2e-tests/playwright && npx playwright --version)
|
||||
browsers
|
||||
$(du -hs ~/ms-playwright/* | awk '{print " = " $2 " (" $1 ")"}')
|
||||
INNEREOF
|
||||
EOF
|
||||
|
||||
# Enable next line to debug Playwright
|
||||
# export DEBUG=pw:protocol,pw:browser,pw:api
|
||||
|
||||
Ссылка в новой задаче
Block a user