2010-04-22 14:39:09 -07:00
|
|
|
Feature: Setup
|
2010-07-17 13:46:20 -07:00
|
|
|
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 |
|
|
|
|
| module | Orchard.Setup, Orchard.Users, Orchard.Roles, Orchard.Comments, Orchard.Themes, Orchard.jQuery, TinyMce |
|
|
|
|
| core | Common, Contents, ContentsLocation, Dashboard, Feeds, HomePage, Navigation, Routable, PublishLater, Scheduling, Settings, Shapes, XmlRpc |
|
|
|
|
| theme | SafeMode |
|
2010-07-17 13:46:20 -07:00
|
|
|
When I go to "/Default.aspx"
|
|
|
|
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 |
|
|
|
|
| module | Orchard.Setup, Orchard.Users, Orchard.Roles, Orchard.Comments, Orchard.Themes, Orchard.jQuery, TinyMce |
|
|
|
|
| core | Common, Contents, ContentsLocation, Dashboard, Feeds, HomePage, Navigation, Routable, PublishLater, Scheduling, Settings, Shapes, XmlRpc |
|
|
|
|
| theme | SafeMode |
|
2010-07-17 13:46:20 -07:00
|
|
|
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
|
2010-04-20 14:13:14 -07:00
|
|
|
|
|
|
|
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 |
|
|
|
|
| module | Orchard.Setup, Orchard.Users, Orchard.Roles, Orchard.Comments, Orchard.Themes, Orchard.jQuery, TinyMce |
|
|
|
|
| core | Common, Contents, ContentsLocation, Dashboard, Feeds, HomePage, Navigation, Routable, PublishLater, Scheduling, Settings, Shapes, XmlRpc |
|
|
|
|
| theme | SafeMode |
|
2010-07-17 13:46:20 -07:00
|
|
|
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:13:14 -07:00
|
|
|
|
2010-04-20 14:27:43 -07:00
|
|
|
Scenario: Calling setup on a brand new install
|
2010-07-17 13:46:20 -07:00
|
|
|
Given I have a clean site with
|
|
|
|
| extension | names |
|
2010-09-21 18:00:55 -07:00
|
|
|
| module | Orchard.Setup, Orchard.Users, Orchard.Roles, Orchard.Comments, Orchard.Themes, Orchard.jQuery, TinyMce |
|
2010-09-21 16:17:47 -07:00
|
|
|
| core | Common, Contents, ContentsLocation, Dashboard, Feeds, HomePage, Navigation, Routable, PublishLater, Scheduling, Settings, Shapes, XmlRpc |
|
2010-07-17 13:46:20 -07:00
|
|
|
| theme | SafeMode, Classic |
|
|
|
|
And I am on "/Setup"
|
|
|
|
When I fill in
|
|
|
|
| name | value |
|
|
|
|
| SiteName | My Site |
|
|
|
|
| AdminPassword | 6655321 |
|
|
|
|
| ConfirmPassword | 6655321 |
|
|
|
|
And I hit "Finish Setup"
|
|
|
|
And I go to "/Default.aspx"
|
2010-07-26 10:11:24 -07:00
|
|
|
Then I should see "My Site"
|
|
|
|
And I should see "Welcome"
|
2010-07-17 13:46:20 -07:00
|
|
|
And I should see "you've successfully set-up your Orchard site"
|