1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
;; Demo config for the static fixture site. Run from anywhere in the
;; workspace: parallax run --config fixtures/parallax.fnl
{:name "parallax-fixture"
:variants {:desktop-light {:viewport [1280 900]}
:desktop-dark {:viewport [1280 900] :scheme :dark}
:mobile-light {:viewport [375 812]}
:mobile-dark {:viewport [375 812] :scheme :dark}}
:server (fn []
{:cmd ["cargo" "run" "--quiet" "--package" "parallax-fixture"]
:timeout 120})
:flow (fn [{: goto : wait-for : click : snap : post : app}]
(goto "/")
(wait-for ".dashboard")
(snap :dashboard)
(click ".complete-btn")
(wait-for ".flash-bar")
(snap :dashboard-after-complete)
(post "/__fixtures/items" {:title "Added by the flow" :tag "parallax"})
(goto (.. "/items/" (. (app) :featured_item) ".html"))
(wait-for ".item-detail")
(snap :item-detail {:selector ".item-detail"}))}