mirror of
https://github.com/logseq/logseq.git
synced 2026-05-01 17:36:33 +00:00
* first e2e example * Add wally repl pause/resume example * use with-page-open * add indent outdent test * outliner add delete tests * remove all timeout usage * refactor: move fns to logseq.util * Add commands tests for command trigger and node reference * Add http-server * add bb script to build release and run tests * exit when tests finished * Add clj e2e workflow * increase slow-mo to 100
18 lines
466 B
Clojure
18 lines
466 B
Clojure
(ns logseq.fixtures
|
|
(:require [wally.main :as w]))
|
|
|
|
;; TODO: save trace
|
|
;; TODO: parallel support
|
|
(defn open-page
|
|
[f & {:keys [headless]
|
|
:or {headless true}}]
|
|
(w/with-page-open
|
|
(w/make-page {:headless headless
|
|
:persistent false
|
|
:slow-mo 100
|
|
;; Set `slow-mo` lower to find more flaky tests
|
|
;; :slow-mo 30
|
|
})
|
|
(w/navigate "http://localhost:3002")
|
|
(f)))
|