Skip to content

Commit

Permalink
Fix headless logic. #30
Browse files Browse the repository at this point in the history
  • Loading branch information
chr15m committed Feb 5, 2024
1 parent 943b6a2 commit 032b24a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/sitefoxtest/e2etests.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@
(swap! log-listeners conj [re-string res]))))

(defn get-browser []
(p/let [browser (.launch pw/chromium #js {:headless (nil? (j/get env "CI")) :timeout 3000})
(p/let [browser (.launch pw/chromium
#js {:headless (not (nil? (j/get env "CI")))
:timeout 3000})
context (.newContext browser)
page (.newPage context)]
(.setDefaultTimeout page 3000)
Expand Down

0 comments on commit 032b24a

Please sign in to comment.