Skip to content

Commit

Permalink
Increase e2e test browser timeout for OSX slowness. #30.
Browse files Browse the repository at this point in the history
  • Loading branch information
chr15m committed Feb 7, 2024
1 parent 6aecd9e commit b519b61
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sitefoxtest/e2etests.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

(def host "localhost")
(def base-url (str "http://" host ":8000"))
(def browser-timeout 5000)

(def log (j/call-in js/console [:log :bind] js/console " ---> "))
(def log-listeners (atom #{}))
Expand Down Expand Up @@ -57,7 +58,7 @@
(defn get-browser []
(p/let [browser (.launch pw/chromium
#js {:headless (not (nil? (j/get env "CI")))
:timeout 3000})
:timeout browser-timeout})
context (.newContext browser)
page (.newPage context)]
(.setDefaultTimeout page 3000)
Expand Down

0 comments on commit b519b61

Please sign in to comment.