2011-07-24 07:21:52 +02:00
|
|
|
Feature: Dynamic Pages
|
|
|
|
In order to use a single view to generate multiple output files
|
|
|
|
|
|
|
|
Scenario: Checking built folder for content
|
2011-12-30 00:09:51 +01:00
|
|
|
Given a successfully built app at "dynamic-pages-app"
|
2011-12-16 01:05:15 +01:00
|
|
|
When I cd to "build"
|
|
|
|
Then the following files should exist:
|
|
|
|
| fake.html |
|
2011-12-26 20:11:31 +01:00
|
|
|
| fake2.html |
|
|
|
|
| fake3.html |
|
|
|
|
| fake4.html |
|
2011-12-16 01:05:15 +01:00
|
|
|
| fake/one.html |
|
|
|
|
| fake/two.html |
|
2011-12-26 20:11:31 +01:00
|
|
|
| fake2/one.html |
|
|
|
|
| fake2/two.html |
|
|
|
|
| fake3/one.html |
|
|
|
|
| fake3/two.html |
|
|
|
|
| fake4/one.html |
|
|
|
|
| fake4/two.html |
|
2011-12-16 01:05:15 +01:00
|
|
|
| target_ignore.html |
|
2011-12-26 20:11:31 +01:00
|
|
|
| target_ignore2.html |
|
|
|
|
| target_ignore3.html |
|
|
|
|
| target_ignore4.html |
|
2011-12-16 01:05:15 +01:00
|
|
|
Then the following files should not exist:
|
|
|
|
| should_be_ignored.html |
|
|
|
|
| should_be_ignored2.html |
|
|
|
|
| should_be_ignored3.html |
|
2011-12-26 20:11:31 +01:00
|
|
|
| should_be_ignored4.html |
|
|
|
|
| should_be_ignored5.html |
|
|
|
|
| should_be_ignored6.html |
|
|
|
|
| should_be_ignored7.html |
|
|
|
|
| should_be_ignored8.html |
|
2011-07-24 07:21:52 +02:00
|
|
|
|
|
|
|
Scenario: Preview basic proxy
|
2011-12-30 00:09:51 +01:00
|
|
|
Given the Server is running at "dynamic-pages-app"
|
2011-07-24 07:21:52 +02:00
|
|
|
When I go to "/fake.html"
|
|
|
|
Then I should see "I am real"
|
2011-12-26 20:11:31 +01:00
|
|
|
When I go to "/fake2.html"
|
|
|
|
Then I should see "I am real"
|
|
|
|
When I go to "/fake3.html"
|
|
|
|
Then I should see "I am real"
|
|
|
|
When I go to "/fake4.html"
|
|
|
|
Then I should see "I am real"
|
2011-07-24 07:21:52 +02:00
|
|
|
|
|
|
|
Scenario: Preview proxy with variable one
|
2011-12-30 00:09:51 +01:00
|
|
|
Given the Server is running at "dynamic-pages-app"
|
2011-07-24 07:21:52 +02:00
|
|
|
When I go to "/fake/one.html"
|
|
|
|
Then I should see "I am real: one"
|
2012-01-06 06:18:55 +01:00
|
|
|
Then I should see "Global: I am one glob"
|
|
|
|
Then I should see "All: I am all glob"
|
|
|
|
|
2011-12-26 20:11:31 +01:00
|
|
|
When I go to "/fake2/one.html"
|
|
|
|
Then I should see "I am real: one"
|
2012-01-06 06:18:55 +01:00
|
|
|
Then I should see "Global: I am two glob"
|
|
|
|
Then I should see "All: I am all glob"
|
|
|
|
|
2011-12-26 20:11:31 +01:00
|
|
|
When I go to "/fake3/one.html"
|
|
|
|
Then I should see "I am real: one"
|
2012-01-06 06:18:55 +01:00
|
|
|
Then I should see "Global: I am three glob"
|
|
|
|
Then I should see "All: I am all glob"
|
|
|
|
|
2011-12-26 20:11:31 +01:00
|
|
|
When I go to "/fake4/one.html"
|
|
|
|
Then I should see "I am real: one"
|
2012-01-06 06:18:55 +01:00
|
|
|
Then I should see "Global: I am four glob"
|
|
|
|
Then I should see "All: I am all glob"
|
2011-07-24 07:21:52 +02:00
|
|
|
|
|
|
|
Scenario: Preview proxy with variable two
|
2011-12-30 00:09:51 +01:00
|
|
|
Given the Server is running at "dynamic-pages-app"
|
2011-07-24 07:21:52 +02:00
|
|
|
When I go to "/fake/two.html"
|
2011-07-28 04:59:38 +02:00
|
|
|
Then I should see "I am real: two"
|
2012-01-06 06:18:55 +01:00
|
|
|
Then I should see "Global: I am one glob"
|
|
|
|
Then I should see "All: I am all glob"
|
|
|
|
|
2011-12-26 20:11:31 +01:00
|
|
|
When I go to "/fake2/two.html"
|
|
|
|
Then I should see "I am real: two"
|
2012-01-06 06:18:55 +01:00
|
|
|
Then I should see "Global: I am two glob"
|
|
|
|
Then I should see "All: I am all glob"
|
|
|
|
|
2011-12-26 20:11:31 +01:00
|
|
|
When I go to "/fake3/two.html"
|
|
|
|
Then I should see "I am real: two"
|
2012-01-06 06:18:55 +01:00
|
|
|
Then I should see "Global: I am three glob"
|
|
|
|
Then I should see "All: I am all glob"
|
|
|
|
|
2011-12-26 20:11:31 +01:00
|
|
|
When I go to "/fake4/two.html"
|
|
|
|
Then I should see "I am real: two"
|
2012-01-06 06:18:55 +01:00
|
|
|
Then I should see "Global: I am four glob"
|
|
|
|
Then I should see "All: I am all glob"
|
2012-03-12 06:49:21 +01:00
|
|
|
|
|
|
|
Scenario: Build proxy with variable one
|
|
|
|
Given a successfully built app at "dynamic-pages-app"
|
|
|
|
When I cd to "build"
|
|
|
|
Then the file "fake/one.html" should contain "I am real: one"
|
|
|
|
Then the file "fake/one.html" should contain "Global: I am one glob"
|
|
|
|
Then the file "fake/one.html" should contain "All: I am all glob"
|
|
|
|
|
|
|
|
Then the file "fake2/one.html" should contain "I am real: one"
|
|
|
|
Then the file "fake2/one.html" should contain "Global: I am two glob"
|
|
|
|
Then the file "fake2/one.html" should contain "All: I am all glob"
|
|
|
|
|
|
|
|
Then the file "fake3/one.html" should contain "I am real: one"
|
|
|
|
Then the file "fake3/one.html" should contain "Global: I am three glob"
|
|
|
|
Then the file "fake3/one.html" should contain "All: I am all glob"
|
2011-12-26 20:11:31 +01:00
|
|
|
|
|
|
|
Scenario: Target ignore
|
2011-12-30 00:09:51 +01:00
|
|
|
Given the Server is running at "dynamic-pages-app"
|
2011-12-26 20:11:31 +01:00
|
|
|
When I go to "/target_ignore.html"
|
|
|
|
Then I should see "Ignore me! 3"
|
|
|
|
When I go to "/target_ignore2.html"
|
|
|
|
Then I should see "Ignore me! 6"
|
|
|
|
When I go to "/target_ignore3.html"
|
|
|
|
Then I should see "Ignore me! 7"
|
|
|
|
When I go to "/target_ignore4.html"
|
|
|
|
Then I should see "Ignore me! 8"
|
2011-07-28 04:59:38 +02:00
|
|
|
|
|
|
|
Scenario: Preview ignored paths
|
2011-12-30 00:09:51 +01:00
|
|
|
Given the Server is running at "dynamic-pages-app"
|
2011-07-28 04:59:38 +02:00
|
|
|
When I go to "/should_be_ignored.html"
|
2011-12-26 20:11:31 +01:00
|
|
|
Then I should see "File Not Found"
|
|
|
|
When I go to "/should_be_ignored2.html"
|
|
|
|
Then I should see "File Not Found"
|
|
|
|
When I go to "/should_be_ignored3.html"
|
|
|
|
Then I should see "File Not Found"
|
|
|
|
When I go to "/should_be_ignored4.html"
|
|
|
|
Then I should see "File Not Found"
|
|
|
|
When I go to "/should_be_ignored5.html"
|
|
|
|
Then I should see "File Not Found"
|
|
|
|
When I go to "/should_be_ignored6.html"
|
|
|
|
Then I should see "File Not Found"
|
|
|
|
When I go to "/should_be_ignored7.html"
|
|
|
|
Then I should see "File Not Found"
|
|
|
|
When I go to "/should_be_ignored8.html"
|
2011-07-28 04:59:38 +02:00
|
|
|
Then I should see "File Not Found"
|