Use capybara to make javascript testing possible

This commit is contained in:
Max Meyer 2015-06-08 04:12:00 +02:00
parent f2f82a4ff9
commit 3935a7cf5f
7 changed files with 56 additions and 14 deletions

View file

@ -0,0 +1,18 @@
Feature: Test a site with javascript included
As a software developer
I want to develop a site using javascript
I would like to have a server step rendering javascript correctly in order to test it
@javascript
Scenario: Existing app with javascript
Given the Server is running at "javascript-app"
When I go to "/index.html"
Then I should see:
"""
Local Hour
"""
And I should see:
"""
Local Minutes
"""