Skip to content

Instantly share code, notes, and snippets.

Created March 3, 2015 18:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/b072e75c3a3453723a5d to your computer and use it in GitHub Desktop.
Save anonymous/b072e75c3a3453723a5d to your computer and use it in GitHub Desktop.
(ns hndrx-tests.dialogue-tests
(:require [clojure.test :refer :all]
[hndrx-tests.core :refer :all]))
(use 'clj-webdriver.taxi)
(def BASE-URL "http://127.0.0.1:8000")
(defn each-fixture [f]
(let [driver1 (new-driver {:browser :chrome})
driver2 (new-driver {:browser :chrome})]
(to driver1 BASE-URL)
(to driver2 BASE-URL)
(f driver1 driver2)
(quit driver1)
(quit driver2)))
(deftest math
(is (= 4 (+ 2 2))))
(use-fixtures :each each-fixture)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment