| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 | 
							- (ns app.util
 
-   (:refer-clojure :exclude [first get]))
 
- (def cy js/cy)
 
- (defn back-to-home
 
-   []
 
-   (.. cy (get ".ui__modal")
 
-       (first)
 
-       (click)))
 
- (defn edit-block
 
-   [content]
 
-   (.. cy (get "textarea")
 
-       (first)
 
-       (click)
 
-       (type content)))
 
- (defn tab
 
-   []
 
-   (.. cy (realPress "Tab")))
 
- (defn shift+tab
 
-   []
 
-   (.. cy (realPress #js ["Shift" "Tab"])))
 
- (defn shift+up
 
-   []
 
-   (.. cy (realPress #js ["Shift" "ArrowUp"])))
 
- (defn shift+down
 
-   []
 
-   (.. cy (realPress #js ["Shift" "ArrowDown"])))
 
- (defn backspace
 
-   []
 
-   (edit-block "{backspace}"))
 
- (defn delete
 
-   []
 
-   (.. cy (realPress "Delete")))
 
- (defn match-content
 
-   [value]
 
-   (.. cy (get "textarea") (first)
 
-       (should "have.value" value)))
 
 
  |