mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Start to fix Blog spec tests. Still some usage of Routable; some either need
heavily redesigning or just removing. --HG-- branch : autoroute
This commit is contained in:
@@ -13,14 +13,14 @@ Scenario: I can create a new blog and blog post
|
|||||||
When I go to "admin/blogs/create"
|
When I go to "admin/blogs/create"
|
||||||
And I fill in
|
And I fill in
|
||||||
| name | value |
|
| name | value |
|
||||||
| Routable.Title | My Blog |
|
| Title.Title | My Blog |
|
||||||
And I hit "Save"
|
And I hit "Save"
|
||||||
And I go to "admin/blogs"
|
And I go to "admin/blogs"
|
||||||
And I follow "My Blog"
|
And I follow "My Blog"
|
||||||
And I follow "New Post" where class name has "primaryAction"
|
And I follow "New Post" where class name has "primaryAction"
|
||||||
And I fill in
|
And I fill in
|
||||||
| name | value |
|
| name | value |
|
||||||
| Routable.Title | My Post |
|
| Title.Title | My Post |
|
||||||
| Body.Text | Hi there. |
|
| Body.Text | Hi there. |
|
||||||
And I hit "Publish Now"
|
And I hit "Publish Now"
|
||||||
And I am redirected
|
And I am redirected
|
||||||
@@ -37,14 +37,14 @@ Scenario: I can create a new blog with multiple blog posts each with the same ti
|
|||||||
When I go to "admin/blogs/create"
|
When I go to "admin/blogs/create"
|
||||||
And I fill in
|
And I fill in
|
||||||
| name | value |
|
| name | value |
|
||||||
| Routable.Title | My Blog |
|
| Title.Title | My Blog |
|
||||||
And I hit "Save"
|
And I hit "Save"
|
||||||
And I go to "admin/blogs"
|
And I go to "admin/blogs"
|
||||||
And I follow "My Blog"
|
And I follow "My Blog"
|
||||||
And I follow "New Post" where class name has "primaryAction"
|
And I follow "New Post" where class name has "primaryAction"
|
||||||
And I fill in
|
And I fill in
|
||||||
| name | value |
|
| name | value |
|
||||||
| Routable.Title | My Post |
|
| Title.Title | My Post |
|
||||||
| Body.Text | Hi there. |
|
| Body.Text | Hi there. |
|
||||||
And I hit "Publish Now"
|
And I hit "Publish Now"
|
||||||
And I go to "my-blog/my-post"
|
And I go to "my-blog/my-post"
|
||||||
@@ -55,7 +55,7 @@ Scenario: I can create a new blog with multiple blog posts each with the same ti
|
|||||||
And I follow "New Post" where class name has "primaryAction"
|
And I follow "New Post" where class name has "primaryAction"
|
||||||
And I fill in
|
And I fill in
|
||||||
| name | value |
|
| name | value |
|
||||||
| Routable.Title | My Post |
|
| Title.Title | My Post |
|
||||||
| Body.Text | Hi there, again. |
|
| Body.Text | Hi there, again. |
|
||||||
And I hit "Publish Now"
|
And I hit "Publish Now"
|
||||||
And I go to "my-blog/my-post-2"
|
And I go to "my-blog/my-post-2"
|
||||||
@@ -66,7 +66,7 @@ Scenario: I can create a new blog with multiple blog posts each with the same ti
|
|||||||
And I follow "New Post" where class name has "primaryAction"
|
And I follow "New Post" where class name has "primaryAction"
|
||||||
And I fill in
|
And I fill in
|
||||||
| name | value |
|
| name | value |
|
||||||
| Routable.Title | My Post |
|
| Title.Title | My Post |
|
||||||
| Routable.Slug | my-post |
|
| Routable.Slug | my-post |
|
||||||
| Body.Text | Are you still there? |
|
| Body.Text | Are you still there? |
|
||||||
And I hit "Publish Now"
|
And I hit "Publish Now"
|
||||||
@@ -74,12 +74,12 @@ Scenario: I can create a new blog with multiple blog posts each with the same ti
|
|||||||
Then I should see "<h1[^>]*>.*?My Post.*?</h1>"
|
Then I should see "<h1[^>]*>.*?My Post.*?</h1>"
|
||||||
And I should see "Are you still there?"
|
And I should see "Are you still there?"
|
||||||
|
|
||||||
Scenario: I can create a new blog and blog post and when I change the slug of the blog the path of the plog post is updated
|
Scenario: I can create a new blog and blog post and when I change the slug of the blog the path of the blog post is updated
|
||||||
Given I have installed Orchard
|
Given I have installed Orchard
|
||||||
When I go to "admin/blogs/create"
|
When I go to "admin/blogs/create"
|
||||||
And I fill in
|
And I fill in
|
||||||
| name | value |
|
| name | value |
|
||||||
| Routable.Title | My Blog |
|
| Title.Title | My Blog |
|
||||||
And I hit "Save"
|
And I hit "Save"
|
||||||
And I go to "my-blog"
|
And I go to "my-blog"
|
||||||
Then I should see "<h1[^>]*>.*?My Blog.*?</h1>"
|
Then I should see "<h1[^>]*>.*?My Blog.*?</h1>"
|
||||||
@@ -88,7 +88,7 @@ Scenario: I can create a new blog and blog post and when I change the slug of th
|
|||||||
And I follow "New Post" where class name has "primaryAction"
|
And I follow "New Post" where class name has "primaryAction"
|
||||||
And I fill in
|
And I fill in
|
||||||
| name | value |
|
| name | value |
|
||||||
| Routable.Title | My Post |
|
| Title.Title | My Post |
|
||||||
| Body.Text | Hi there. |
|
| Body.Text | Hi there. |
|
||||||
And I hit "Publish Now"
|
And I hit "Publish Now"
|
||||||
And I go to "my-blog/my-post"
|
And I go to "my-blog/my-post"
|
||||||
@@ -112,14 +112,14 @@ Scenario: When viewing a blog the user agent is given an RSS feed of the blog's
|
|||||||
When I go to "admin/blogs/create"
|
When I go to "admin/blogs/create"
|
||||||
And I fill in
|
And I fill in
|
||||||
| name | value |
|
| name | value |
|
||||||
| Routable.Title | My Blog |
|
| Title.Title | My Blog |
|
||||||
And I hit "Save"
|
And I hit "Save"
|
||||||
And I go to "admin/blogs"
|
And I go to "admin/blogs"
|
||||||
And I follow "My Blog"
|
And I follow "My Blog"
|
||||||
And I follow "New Post" where class name has "primaryAction"
|
And I follow "New Post" where class name has "primaryAction"
|
||||||
And I fill in
|
And I fill in
|
||||||
| name | value |
|
| name | value |
|
||||||
| Routable.Title | My Post |
|
| Title.Title | My Post |
|
||||||
| Body.Text | Hi there. |
|
| Body.Text | Hi there. |
|
||||||
And I hit "Publish Now"
|
And I hit "Publish Now"
|
||||||
And I am redirected
|
And I am redirected
|
||||||
@@ -134,7 +134,7 @@ Scenario: Enabling remote blog publishing inserts the appropriate metaweblogapi
|
|||||||
When I go to "admin/blogs/create"
|
When I go to "admin/blogs/create"
|
||||||
And I fill in
|
And I fill in
|
||||||
| name | value |
|
| name | value |
|
||||||
| Routable.Title | My Blog |
|
| Title.Title | My Blog |
|
||||||
And I hit "Save"
|
And I hit "Save"
|
||||||
And I go to "my-blog"
|
And I go to "my-blog"
|
||||||
Then I should see "<link href="[^"]*/XmlRpc/LiveWriter/Manifest" rel="wlwmanifest" type="application/wlwmanifest\+xml" />"
|
Then I should see "<link href="[^"]*/XmlRpc/LiveWriter/Manifest" rel="wlwmanifest" type="application/wlwmanifest\+xml" />"
|
||||||
@@ -149,7 +149,7 @@ Scenario: The virtual path of my installation when not at the root is reflected
|
|||||||
Then I should see "<span>http\://localhost/OrchardLocal/</span>"
|
Then I should see "<span>http\://localhost/OrchardLocal/</span>"
|
||||||
When I fill in
|
When I fill in
|
||||||
| name | value |
|
| name | value |
|
||||||
| Routable.Title | My Blog |
|
| Title.Title | My Blog |
|
||||||
And I hit "Save"
|
And I hit "Save"
|
||||||
And I go to "admin/blogs"
|
And I go to "admin/blogs"
|
||||||
And I follow "My Blog"
|
And I follow "My Blog"
|
||||||
@@ -162,7 +162,7 @@ Scenario: The virtual path of my installation when at the root is reflected in t
|
|||||||
Then I should see "<span>http\://localhost/</span>"
|
Then I should see "<span>http\://localhost/</span>"
|
||||||
When I fill in
|
When I fill in
|
||||||
| name | value |
|
| name | value |
|
||||||
| Routable.Title | My Blog |
|
| Title.Title | My Blog |
|
||||||
And I hit "Save"
|
And I hit "Save"
|
||||||
And I go to "admin/blogs"
|
And I go to "admin/blogs"
|
||||||
And I follow "My Blog"
|
And I follow "My Blog"
|
||||||
@@ -174,7 +174,7 @@ Scenario: I set my blog to be the content for the home page and the posts for th
|
|||||||
When I go to "admin/blogs/create"
|
When I go to "admin/blogs/create"
|
||||||
And I fill in
|
And I fill in
|
||||||
| name | value |
|
| name | value |
|
||||||
| Routable.Title | My Blog |
|
| Title.Title | My Blog |
|
||||||
| Routable.PromoteToHomePage | true |
|
| Routable.PromoteToHomePage | true |
|
||||||
And I hit "Save"
|
And I hit "Save"
|
||||||
And I go to "admin/blogs"
|
And I go to "admin/blogs"
|
||||||
@@ -182,7 +182,7 @@ Scenario: I set my blog to be the content for the home page and the posts for th
|
|||||||
And I follow "New Post" where class name has "primaryAction"
|
And I follow "New Post" where class name has "primaryAction"
|
||||||
And I fill in
|
And I fill in
|
||||||
| name | value |
|
| name | value |
|
||||||
| Routable.Title | My Post |
|
| Title.Title | My Post |
|
||||||
| Body.Text | Hi there. |
|
| Body.Text | Hi there. |
|
||||||
And I hit "Publish Now"
|
And I hit "Publish Now"
|
||||||
And I am redirected
|
And I am redirected
|
||||||
|
|||||||
Reference in New Issue
Block a user