mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Updating a blog spec test to rearrange the workflow
--HG-- branch : dev
This commit is contained in:
@@ -15,18 +15,18 @@ Scenario: I can create a new blog and blog post
|
||||
| name | value |
|
||||
| Routable.Title | My Blog |
|
||||
And I hit "Save"
|
||||
And I go to "my-blog"
|
||||
Then I should see "<h1[^>]*>.*?My Blog.*?</h1>"
|
||||
When I go to "admin/blogs"
|
||||
And I go to "admin/blogs"
|
||||
And I follow "My Blog"
|
||||
Then I should see "foo"
|
||||
When I follow "New Post"
|
||||
And I follow "New Post"
|
||||
And I fill in
|
||||
| name | value |
|
||||
| Routable.Title | My Post |
|
||||
| Body.Text | Hi there. |
|
||||
And I hit "Publish Now"
|
||||
And I go to "my-blog/my-post"
|
||||
And I go to "my-blog"
|
||||
Then I should see "<h1[^>]*>.*?My Blog.*?</h1>"
|
||||
And I should see "<h1[^>]*>.*?My Post.*?</h1>"
|
||||
When I go to "my-blog/my-post"
|
||||
Then I should see "<h1[^>]*>.*?My Post.*?</h1>"
|
||||
And I should see "Hi there."
|
||||
|
||||
|
24
src/Orchard.Specs/Blogs.feature.cs
generated
24
src/Orchard.Specs/Blogs.feature.cs
generated
@@ -93,17 +93,11 @@ this.ScenarioSetup(scenarioInfo);
|
||||
#line 17
|
||||
testRunner.And("I hit \"Save\"");
|
||||
#line 18
|
||||
testRunner.And("I go to \"my-blog\"");
|
||||
testRunner.And("I go to \"admin/blogs\"");
|
||||
#line 19
|
||||
testRunner.Then("I should see \"<h1[^>]*>.*?My Blog.*?</h1>\"");
|
||||
#line 20
|
||||
testRunner.When("I go to \"admin/blogs\"");
|
||||
#line 21
|
||||
testRunner.And("I follow \"My Blog\"");
|
||||
#line 22
|
||||
testRunner.Then("I should see \"foo\"");
|
||||
#line 23
|
||||
testRunner.When("I follow \"New Post\"");
|
||||
#line 20
|
||||
testRunner.And("I follow \"New Post\"");
|
||||
#line hidden
|
||||
TechTalk.SpecFlow.Table table2 = new TechTalk.SpecFlow.Table(new string[] {
|
||||
"name",
|
||||
@@ -114,12 +108,18 @@ this.ScenarioSetup(scenarioInfo);
|
||||
table2.AddRow(new string[] {
|
||||
"Body.Text",
|
||||
"Hi there."});
|
||||
#line 24
|
||||
#line 21
|
||||
testRunner.And("I fill in", ((string)(null)), table2);
|
||||
#line 28
|
||||
#line 25
|
||||
testRunner.And("I hit \"Publish Now\"");
|
||||
#line 26
|
||||
testRunner.And("I go to \"my-blog\"");
|
||||
#line 27
|
||||
testRunner.Then("I should see \"<h1[^>]*>.*?My Blog.*?</h1>\"");
|
||||
#line 28
|
||||
testRunner.And("I should see \"<h1[^>]*>.*?My Post.*?</h1>\"");
|
||||
#line 29
|
||||
testRunner.And("I go to \"my-blog/my-post\"");
|
||||
testRunner.When("I go to \"my-blog/my-post\"");
|
||||
#line 30
|
||||
testRunner.Then("I should see \"<h1[^>]*>.*?My Post.*?</h1>\"");
|
||||
#line 31
|
||||
|
Reference in New Issue
Block a user