Skip to content

Commit

Permalink
try playwright
Browse files Browse the repository at this point in the history
  • Loading branch information
henryw374 committed Jan 15, 2024
1 parent fcda1e6 commit 53bd694
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions dev/dev.clj
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
((get util/compile-fns compile-mode)
(util/browser-test-config) opts)
(.mkdirs (io/file "web-target" "public" "browser-test"))
(spit "web-target/public/browser-test/foo.html"
(spit "web-target/public/browser-test/index.html"
"<!DOCTYPE html>
<html><head>
<title>kaocha.cljs2.shadow-runner</title>
Expand All @@ -33,6 +33,8 @@
</script>
<script>kaocha.cljs2.shadow_runner.init();</script></body></html>"
)

(println (slurp "web-target/public/browser-test/index.html"))

(println "for tests, open " util/test-url))

Expand All @@ -45,8 +47,8 @@
(browser-test-build compile-mode {})
(println (fs/list-dir "web-target/public/browser-test"))
(println "file")
(println (slurp "web-target/public/browser-test/foo.html"))
(println (slurp (str util/shadow-local "/browser-test/foo.html")))
(println (slurp "web-target/public/browser-test/index.html"))
(println (slurp (str util/shadow-local "/browser-test/index.html")))
(try
(util/kaocha-exit-if-fail (util/run-tests-headless nil))
(catch Exception e
Expand Down

0 comments on commit 53bd694

Please sign in to comment.