Starting to get the project set up. Nothing is even nearly complete yet.
This commit is contained in:
commit
b6a24bc1ce
59 changed files with 7118 additions and 0 deletions
7
test/clj/features/index_page.feature
Normal file
7
test/clj/features/index_page.feature
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
Feature: Cukes
|
||||
An example of testing a compojure app with cucumber.
|
||||
|
||||
Scenario: Index Page
|
||||
Given I am at the "homepage"
|
||||
Then I should see "Welcome to youyesyet"
|
||||
|
||||
11
test/clj/features/step_definitions/home_page_steps.clj
Normal file
11
test/clj/features/step_definitions/home_page_steps.clj
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
(require '[clj-webdriver.taxi :as taxi]
|
||||
'[youyesyet.browser :refer [browser-up browser-down]]
|
||||
'[clojure.test :refer :all])
|
||||
|
||||
(Given #"^I am at the \"homepage\"$" []
|
||||
(browser-up)
|
||||
(taxi/to "http://localhost:3000/"))
|
||||
|
||||
(Then #"^I should see \"([^\"]*)\"$" [title]
|
||||
(is (= (taxi/text "div.jumbotron > h1") title))
|
||||
(browser-down))
|
||||
Loading…
Add table
Add a link
Reference in a new issue