|
@@ -1,21 +1,27 @@
|
|
|
-(ns logseq.e2e.repl
|
|
|
|
|
|
|
+(ns user
|
|
|
"fns used on repl"
|
|
"fns used on repl"
|
|
|
(:require [clojure.test :refer [run-tests run-test]]
|
|
(:require [clojure.test :refer [run-tests run-test]]
|
|
|
[logseq.e2e.util :as util]
|
|
[logseq.e2e.util :as util]
|
|
|
[wally.main :as w]
|
|
[wally.main :as w]
|
|
|
- [wally.repl :as repl]))
|
|
|
|
|
|
|
+ [wally.repl :as repl]
|
|
|
|
|
+ [logseq.e2e.editor-test]
|
|
|
|
|
+ [logseq.e2e.outliner-test]
|
|
|
|
|
+ [logseq.e2e.rtc-basic-test]
|
|
|
|
|
+ [logseq.e2e.fixtures :as fixtures]))
|
|
|
|
|
+
|
|
|
|
|
+;; Use port 3001 for local testing
|
|
|
|
|
+(reset! fixtures/*port 3001)
|
|
|
|
|
+;; show ui
|
|
|
|
|
+(reset! fixtures/*headless false)
|
|
|
|
|
|
|
|
(comment
|
|
(comment
|
|
|
|
|
|
|
|
(future
|
|
(future
|
|
|
- (w/with-page-open
|
|
|
|
|
- (w/make-page {:headless false
|
|
|
|
|
- :persistent false
|
|
|
|
|
- :slow-mo 20})
|
|
|
|
|
- (w/navigate "http://localhost:3001")
|
|
|
|
|
- (repl/pause)))
|
|
|
|
|
-
|
|
|
|
|
- ;; You can put `(repl/pause)` in any test to pause the tests,
|
|
|
|
|
|
|
+ (fixtures/open-page
|
|
|
|
|
+ repl/pause
|
|
|
|
|
+ {:headless false}))
|
|
|
|
|
+
|
|
|
|
|
+;; You can put `(repl/pause)` in any test to pause the tests,
|
|
|
;; this allows us to continue experimenting with the current page.
|
|
;; this allows us to continue experimenting with the current page.
|
|
|
(repl/pause)
|
|
(repl/pause)
|
|
|
|
|
|
|
@@ -24,8 +30,11 @@
|
|
|
|
|
|
|
|
;; Run all the tests in specific ns with `future` to not block repl
|
|
;; Run all the tests in specific ns with `future` to not block repl
|
|
|
(future (run-tests 'logseq.e2e.editor-test))
|
|
(future (run-tests 'logseq.e2e.editor-test))
|
|
|
|
|
+
|
|
|
(future (run-tests 'logseq.e2e.outliner-test))
|
|
(future (run-tests 'logseq.e2e.outliner-test))
|
|
|
|
|
|
|
|
|
|
+ (future (run-tests 'logseq.e2e.rtc-basic-test))
|
|
|
|
|
+
|
|
|
;; Run specific test
|
|
;; Run specific test
|
|
|
(future (run-test logseq.e2e.editor-test/commands-test))
|
|
(future (run-test logseq.e2e.editor-test/commands-test))
|
|
|
|
|
|