瀏覽代碼

Update e2e practices

Junyi Du 2 年之前
父節點
當前提交
14ee3d0cca
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      docs/dev-practices.md

+ 5 - 0
docs/dev-practices.md

@@ -89,6 +89,11 @@ yarn electron-watch
 yarn e2e-test # or npx playwright test
 ```
 
+If e2e failed after first running:
+- `rm -rdf ~/.logseq`
+- `rm -rdf <repo dir>/tmp/`  
+- `rm -rdf <appData dir>/Electron`  (Reference: https://www.electronjs.org/de/docs/latest/api/app#appgetpathname)
+
 ### Unit Testing
 
 Our unit tests use the [shadow-cljs test-runner](https://shadow-cljs.github.io/docs/UsersGuide.html#_testing). To run them: