Skip to content

Instantly share code, notes, and snippets.

/dialogue_tests.clj
Created Mar 3, 2015

Embed
What would you like to do?
(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
You can’t perform that action at this time.