Skip to content

Commit 2f926bf

Browse files
committed
ci: install required package
Signed-off-by: Saw-jan <[email protected]>
1 parent 55e8f4e commit 2f926bf

File tree

2 files changed

+12
-20
lines changed

2 files changed

+12
-20
lines changed

.drone.star

Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ APPS = [
1818
]
1919

2020
BROWSERS = [
21-
"chrome",
21+
"chromium",
2222
"firefox",
2323
"webkit",
2424
]
@@ -432,7 +432,7 @@ def logTracingResult(ctx):
432432
"commands": [
433433
"cd test-results/",
434434
'echo "To see the trace, please open the following link in the console"',
435-
'for f in */; do echo "npx playwright show-trace https://cache.owncloud.com/public/${DRONE_REPO}/${DRONE_BUILD_NUMBER}/tracing/$f"trace.zip" \n"; done',
435+
'for f in */; do echo "npx playwright show-trace %s/%s/${DRONE_REPO}/${DRONE_BUILD_NUMBER}/tracing/$f"trace.zip" \n"; done' % (S3_CACHE_SERVER, S3_PUBLIC_CACHE_BUCKET),
436436
],
437437
"when": {
438438
"status": ["failure"],
@@ -443,15 +443,12 @@ def e2eTests(ctx):
443443
e2e_test_steps = [{
444444
"name": "install-browser",
445445
"image": OC_CI_NODEJS,
446+
"environment": {
447+
"PLAYWRIGHT_BROWSERS_PATH": ".playwright",
448+
},
446449
"commands": [
447450
"pnpm exec playwright install --with-deps",
448451
],
449-
"volumes": [
450-
{
451-
"name": "playwright-cache",
452-
"path": "/root/.cache/ms-playwright",
453-
},
454-
],
455452
}]
456453
depends_on = []
457454
for idx, browser in enumerate(BROWSERS):
@@ -464,14 +461,13 @@ def e2eTests(ctx):
464461
e2e_test_steps.append({
465462
"name": "e2e-%s" % browser,
466463
"image": OC_CI_NODEJS,
464+
"environment": {
465+
"PLAYWRIGHT_BROWSERS_PATH": ".playwright",
466+
"BASE_URL_OCIS": OCIS_URL,
467+
},
467468
"commands": [
468-
"BASE_URL_OCIS=%s pnpm test:e2e --project='%s'" % (OCIS_URL, browser),
469-
],
470-
"volumes": [
471-
{
472-
"name": "playwright-cache",
473-
"path": "/root/.cache/ms-playwright",
474-
},
469+
"apt update && apt install ibxslt1.1 -y" if browser == "webkit" else "",
470+
"pnpm test:e2e --project='%s'" % browser,
475471
],
476472
"when": {
477473
"status": status,
@@ -496,9 +492,5 @@ def e2eTests(ctx):
496492
"name": "apps",
497493
"temp": {},
498494
},
499-
{
500-
"name": "playwright-cache",
501-
"temp": {},
502-
},
503495
],
504496
}]

playwright.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export default defineConfig({
3535
/* Configure projects for major browsers */
3636
projects: [
3737
{
38-
name: 'chrome',
38+
name: 'chromium',
3939
testMatch: '**/e2e/*.spec.ts',
4040
use: { ...devices['Desktop Chrome'], browserName: 'chromium', ignoreHTTPSErrors: true }
4141
},

0 commit comments

Comments
 (0)