Chore: Install Playwright deps manually (#86008)

* install deps manually

* use ubuntu image

* regenerate drone file

* use node bookworm image

* get node major version from variable and wait for grafana server to be ready
This commit is contained in:
Erik Sundell
2024-04-15 14:19:37 +02:00
committed by GitHub
parent 6fb13842a5
commit ad8d505d81
3 changed files with 13 additions and 10 deletions
+3 -2
View File
@@ -853,12 +853,13 @@ def playwright_e2e_tests_step():
"PROV_DIR": "/grafana/scripts/grafana-server/tmp/conf/provisioning",
},
"name": "playwright-plugin-e2e",
"image": images["playwright"],
"image": images["node_deb"],
"depends_on": [
"grafana-server",
],
"commands": [
"sleep 10s", # it seems sometimes that grafana-server is not actually ready when the step starts, so waiting for a few seconds before running the tests
"npx wait-on@7.0.1 http://$HOST:$PORT",
"yarn playwright install --with-deps chromium",
"yarn e2e:playwright",
],
}
+1 -1
View File
@@ -12,6 +12,7 @@ images = {
"git": "alpine/git:2.40.1",
"go": "golang:{}-alpine".format(golang_version),
"node": "node:{}-alpine".format(nodejs_version),
"node_deb": "node:{}-bookworm".format(nodejs_version[:2]),
"cloudsdk": "google/cloud-sdk:431.0.0",
"publish": "grafana/grafana-ci-deploy:1.3.3",
"alpine": "alpine:3.19.1",
@@ -33,5 +34,4 @@ images = {
"cypress": "cypress/included:13.1.0",
"dockerize": "jwilder/dockerize:0.6.1",
"shellcheck": "koalaman/shellcheck:stable",
"playwright": "mcr.microsoft.com/playwright:v1.43.0-jammy",
}