Use capybara to make javascript testing possible
This commit is contained in:
parent
f2f82a4ff9
commit
3935a7cf5f
7 changed files with 56 additions and 14 deletions
18
middleman-core/features/javascript-testing.feature
Normal file
18
middleman-core/features/javascript-testing.feature
Normal 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
|
||||
"""
|
Loading…
Add table
Add a link
Reference in a new issue