You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 9a74a2b
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: automation/run-e2e/README.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -77,6 +77,16 @@ Please make sure to follow these steps:
77
77
7. Once the project is running, proceed with the next step of the script in the terminal to verify if the desired test project port is listening. If it is, the Playwright GUI will be initiated.
78
78
8. In the Playwright GUI interface, selectthetest spec and execute it. From there, you can debug or fix the testcasein your preferred IDE.
79
79
80
+
### Running `pnpm run e2e` when the host can't reach Docker containers
81
+
82
+
On some setups (for example Docker-in-Docker sandboxes) the runtime starts and reports healthy, but every test times out loading the page because the host can't reach containers on Docker bridge networks. Set `E2E_HOST_NETWORK=1` to run the Mendix runtime on the host network instead. Ports `8080` and `8090` must be free:
83
+
84
+
```sh
85
+
$ E2E_HOST_NETWORK=1 pnpm run e2e
86
+
```
87
+
88
+
On Linux the runtime containers run as root. After each run, and before the next one, the runner hands the files they write in `tests/` and `results/` back to your user. You don't need `sudo` to clean up the test project.
89
+
80
90
### Focusing a test
81
91
82
92
To focus a test to only execute it instead of the whole suite, for that is possible to use `test.only` annotation in the test specification. You can see more details [here](https://playwright.dev/docs/test-annotations#focus-a-test).
0 commit comments