mirror of
https://github.com/logseq/logseq.git
synced 2026-02-01 22:47:36 +00:00
test(e2e): fix loc/filter
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
(:require [clojure.string :as string]
|
||||
[logseq.e2e.assert :as assert]
|
||||
[logseq.e2e.keyboard :as k]
|
||||
[logseq.e2e.locator :as loc]
|
||||
[logseq.e2e.util :as util]
|
||||
[wally.main :as w]))
|
||||
|
||||
@@ -13,7 +14,8 @@
|
||||
|
||||
(defn save-block
|
||||
[text]
|
||||
(w/fill util/editor-q text))
|
||||
(w/fill util/editor-q text)
|
||||
(assert/assert-is-visible (loc/filter util/editor-q :has-text text)))
|
||||
|
||||
(defn new-block
|
||||
[title]
|
||||
|
||||
@@ -26,5 +26,5 @@
|
||||
(defn filter
|
||||
"Return locator"
|
||||
{:arglists '([q & {:keys [has has-text has-not has-not-text]}])}
|
||||
[q & opts]
|
||||
[q & {:as opts}]
|
||||
(.filter (w/-query q) (->filter-options opts)))
|
||||
|
||||
Reference in New Issue
Block a user