-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
It seems that GitHub Actions no longer supports `file:` urls for when using safaridriver. I spent some time trying to coax it to do so but safaridriver is not well documented, so instead of trying to come up with brittle incantations, now hitting a local http test server for api tests instead. Cookie tests were affected by this changed and adjusted/simplified: - browser specific tests consolidated (and edge now included) - turfed phantom test, we no longer support it Fixes #561
- Loading branch information
Showing
16 changed files
with
333 additions
and
314 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
(ns test-server | ||
(:require [babashka.cli :as cli] | ||
[babashka.http-server :as server] | ||
[lread.status-line :as status])) | ||
|
||
(def cli-spec {:help {:desc "This usage help" :alias :h} | ||
:port {:ref "<port>" | ||
:desc "Expose server on this port" | ||
:coerce :int | ||
:default 8888 | ||
:alias :p} | ||
:dir {:ref "<dir>" | ||
:desc "Serve static assets from this dir" | ||
:default "./env/test/resources/static" | ||
:alias :d}}) | ||
|
||
(defn- usage-help [] | ||
(status/line :head "Usage help") | ||
(status/line :detail (cli/format-opts {:spec cli-spec :order [:port :dir :help]})) ) | ||
|
||
(defn- usage-fail [msg] | ||
(status/line :error msg) | ||
(usage-help) | ||
(System/exit 1)) | ||
|
||
(defn -main [& args] | ||
(let [opts (cli/parse-opts args {:spec cli-spec | ||
:restrict true | ||
:error-fn (fn [{:keys [msg]}] | ||
(usage-fail msg))})] | ||
(if (:help opts) | ||
(usage-help) | ||
(do | ||
(status/line :detail "Test server static dir: %s" (:dir opts)) | ||
(server/exec opts))))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.