|
7 | 7 | async-setup]] |
8 | 8 | [codes.clj.docs.frontend.test.aux.testing-library :as tl] |
9 | 9 | [helix.core :refer [$]] |
| 10 | + [matcher-combinators.matchers :as m] |
10 | 11 | [matcher-combinators.test :refer [match?]] |
11 | 12 | [promesa.core :as p])) |
12 | 13 |
|
|
31 | 32 | #(-> (tl/mantine-render ($ components/latest-interactions-list {:& latest-interactions-response})) |
32 | 33 | (.findByTestId "latest-interactions-list")))] |
33 | 34 |
|
34 | | - (is (match? ["strobelt added a see also on org.clojure/clojure/clojure.core/contains? 3 months ago." |
35 | | - "strobelt authored an example for org.clojure/clojure/clojure.core/contains? 3 months ago." |
36 | | - "kroncatti authored an example for org.clojure/clojure/clojure.core/defmulti 4 months ago." |
37 | | - "rafaeldelboni added a see also on org.clojure/clojure/clojure.core/take 4 months ago." |
38 | | - "rafaeldelboni authored an example for org.clojure/clojure/clojure.core/take 4 months ago." |
39 | | - "rafaeldelboni added a see also on org.clojure/clojure/clojure.core/remove 4 months ago." |
40 | | - "rafaeldelboni added a see also on org.clojure/clojure/clojure.core/keep 4 months ago." |
41 | | - "rafaeldelboni authored an example for org.clojure/clojure/clojure.core/keep 4 months ago." |
42 | | - "dimmyjr-nu authored an example for nubank/matcher-combinators/matcher-combinators.matchers/embeds 4 months ago." |
43 | | - "matheusfrancisco authored a note for org.clojure/clojure/clojure.core/assoc 4 months ago."] |
| 35 | + (is (match? [(m/pred #(str/starts-with? % "strobelt added a see also on org.clojure/clojure/clojure.core/contains?")) |
| 36 | + (m/pred #(str/starts-with? % "strobelt authored an example for org.clojure/clojure/clojure.core/contains?")) |
| 37 | + (m/pred #(str/starts-with? % "kroncatti authored an example for org.clojure/clojure/clojure.core/defmulti")) |
| 38 | + (m/pred #(str/starts-with? % "rafaeldelboni added a see also on org.clojure/clojure/clojure.core/take")) |
| 39 | + (m/pred #(str/starts-with? % "rafaeldelboni authored an example for org.clojure/clojure/clojure.core/take")) |
| 40 | + (m/pred #(str/starts-with? % "rafaeldelboni added a see also on org.clojure/clojure/clojure.core/remove")) |
| 41 | + (m/pred #(str/starts-with? % "rafaeldelboni added a see also on org.clojure/clojure/clojure.core/keep")) |
| 42 | + (m/pred #(str/starts-with? % "rafaeldelboni authored an example for org.clojure/clojure/clojure.core/keep")) |
| 43 | + (m/pred #(str/starts-with? % "dimmyjr-nu authored an example for nubank/matcher-combinators/matcher-combinators.matchers/embeds")) |
| 44 | + (m/pred #(str/starts-with? % "matheusfrancisco authored a note for org.clojure/clojure/clojure.core/assoc"))] |
44 | 45 | (->> (.querySelectorAll latest-interactions-list ".interaction-text") |
45 | 46 | (map (fn [interaction] |
46 | 47 | (.-textContent interaction)))))) |
|
0 commit comments