Skip to content

Commit 3de5100

Browse files
samuelreichertleonardomendix
authored andcommitted
chore(run-e2e): tune Playwright launch args and bump mxruntime shm_size for stability
1 parent c3e5b4c commit 3de5100

2 files changed

Lines changed: 23 additions & 1 deletion

File tree

automation/run-e2e/docker/docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ services:
2929
# Starts after mxbuild completes; "docker compose up --wait" blocks until healthy.
3030
mxruntime:
3131
image: mxruntime:${MENDIX_VERSION:?MENDIX_VERSION is required}
32+
shm_size: "2gb"
3233
depends_on:
3334
mxbuild:
3435
condition: service_completed_successfully

automation/run-e2e/playwright.config.cjs

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,28 @@ module.exports = defineConfig({
4141
baseURL: process.env.URL ? process.env.URL : "http://127.0.0.1:8080",
4242

4343
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
44-
trace: "on-first-retry"
44+
trace: "on-first-retry",
45+
46+
launchOptions: {
47+
args: [
48+
"--disable-dev-shm-usage",
49+
"--disable-extensions",
50+
"--disable-background-networking",
51+
"--disable-background-timer-throttling",
52+
"--disable-renderer-backgrounding",
53+
"--disable-sync",
54+
"--disable-translate",
55+
"--disable-default-apps",
56+
"--disable-hang-monitor",
57+
"--metrics-recording-only",
58+
"--no-first-run",
59+
"--font-render-hinting=none"
60+
]
61+
},
62+
63+
contextOptions: {
64+
reducedMotion: "reduce"
65+
}
4566
},
4667

4768
/* Configure projects for major browsers */

0 commit comments

Comments
 (0)