Files
Orchard/src/Orchard.Specs/Setup.feature
T

55 lines
3.2 KiB
Gherkin
Raw Normal View History

Feature: Setup
In order to install orchard
As a new user
I want to setup a new site from the default screen
2010-04-14 10:28:33 -07:00
Scenario: Root request shows setup form
2010-09-21 18:00:55 -07:00
Given I have a clean site with
| extension | names |
2010-12-01 17:37:11 -08:00
| Module | Orchard.Setup, Orchard.Pages, Orchard.Users, Orchard.Roles, Orchard.Messaging, Orchard.Comments, Orchard.PublishLater, Orchard.Themes, Orchard.jQuery, TinyMce |
2012-02-20 11:00:52 -08:00
| Core | Common, Contents, Dashboard, Feeds, Navigation, Scheduling, Settings, Shapes, XmlRpc, Title |
2010-12-01 17:37:11 -08:00
| Theme | SafeMode |
2010-12-10 21:42:57 -08:00
When I go to "/"
Then I should see "Welcome to Orchard"
And I should see "Finish Setup"
And the status should be 200 "OK"
2010-04-14 10:28:33 -07:00
Scenario: Setup folder also shows setup form
2010-09-21 18:00:55 -07:00
Given I have a clean site with
| extension | names |
2010-12-01 17:37:11 -08:00
| Module | Orchard.Setup, Orchard.Pages, Orchard.Users, Orchard.Roles, Orchard.Messaging, Orchard.Comments, Orchard.PublishLater, Orchard.Themes, Orchard.jQuery, TinyMce |
2012-02-20 11:00:52 -08:00
| Core | Common, Contents, Dashboard, Feeds, Navigation, Scheduling, Settings, Shapes, XmlRpc, Title |
2010-12-01 17:37:11 -08:00
| Theme | SafeMode |
When I go to "/Setup"
Then I should see "Welcome to Orchard"
And I should see "Finish Setup"
And the status should be 200 "OK"
Scenario: Some of the initial form values are required
2010-09-21 18:00:55 -07:00
Given I have a clean site with
| extension | names |
2010-12-01 17:37:11 -08:00
| Module | Orchard.Setup, Orchard.Pages, Orchard.Users, Orchard.Roles, Orchard.Messaging, Orchard.Comments, Orchard.PublishLater, Orchard.Themes, Orchard.jQuery, TinyMce |
2012-02-20 11:00:52 -08:00
| Core | Common, Contents, Dashboard, Feeds, Navigation, Scheduling, Settings, Shapes, XmlRpc, Title |
2010-12-01 17:37:11 -08:00
| Theme | SafeMode |
When I go to "/Setup"
And I hit "Finish Setup"
2010-09-21 18:00:55 -07:00
Then I should see "<input autofocus="autofocus" class="input-validation-error" id="SiteName" name="SiteName" type="text" value="" />"
And I should see "<input class="input-validation-error" id="AdminPassword" name="AdminPassword" type="password" />"
2010-04-20 14:27:43 -07:00
Scenario: Calling setup on a brand new install
Given I have a clean site with
| extension | names |
2012-02-20 11:00:52 -08:00
| Module | Orchard.Setup, Orchard.Pages, Orchard.Users, Orchard.Roles, Orchard.Lists, Orchard.ContentTypes, Orchard.Messaging, Orchard.Media, Orchard.MediaPicker, Orchard.Scripting, Orchard.Comments, Orchard.PublishLater, Orchard.Themes, Orchard.Modules, Orchard.Widgets, Orchard.jQuery, TinyMce, Orchard.Blogs, Orchard.Tags, Orchard.Packaging, Orchard.Recipes, Orchard.Warmup, Orchard.Autoroute, Orchard.Tokens, Orchard.Alias |
| Core | Common, Containers, Contents, Dashboard, Feeds, Navigation, Scheduling, Settings, Shapes, XmlRpc, Title |
2010-12-01 17:37:11 -08:00
| Theme | SafeMode, TheThemeMachine |
And I am on "/Setup"
When I fill in
| name | value |
| SiteName | My Site |
| AdminPassword | 6655321 |
| ConfirmPassword | 6655321 |
And I hit "Finish Setup"
2010-12-10 21:42:57 -08:00
And I go to "/"
Then I should see "My Site"
2011-01-07 16:12:28 -08:00
And I should see "Welcome, <strong><a href="/Users/Account/ChangePassword">admin</a></strong>!"