This is a small Clojure(Script) application that demonstrates one way to write Cypress end-to-end tests in ClojureScript.
See test/cypress/specs/main.cljs
for the (very rudimentary) Cypress
test and read the comments in project.clj
.
-
Clone this repo.
-
Install Yarn dependencies:
yarn install
-
In one terminal, start the web server:
lein ring server
-
In another terminal, start watching ClojureScript files for changes:
lein cljsbuild auto dev cypress
-
In a third terminal, run Cypress:
yarn run cypress open
-
In the Cypress GUI, Click on
main_spec.js
.