|
@@ -94,6 +94,13 @@ If e2e failed after first running:
|
|
|
- `rm -rdf <repo dir>/tmp/`
|
|
|
- `rm -rdf <appData dir>/Electron` (Reference: https://www.electronjs.org/de/docs/latest/api/app#appgetpathname)
|
|
|
|
|
|
+If e2e tests fail, they can be debugged by examining a trace dump with [the
|
|
|
+playwright trace
|
|
|
+viewer](https://playwright.dev/docs/trace-viewer#recording-a-trace). Locally
|
|
|
+this will get dumped into e2e-dump/. On CI the trace file will be under
|
|
|
+Artifacts at the bottom of a run page e.g.
|
|
|
+https://github.com/logseq/logseq/actions/runs/3574600322.
|
|
|
+
|
|
|
### Unit Testing
|
|
|
|
|
|
Our unit tests use the [shadow-cljs test-runner](https://shadow-cljs.github.io/docs/UsersGuide.html#_testing). To run them:
|