mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Step named: When I hit "x" locates input type submit with value "x" locates the form surrounding that input and sends a POST request to the embedded web host with all of the input values of that form element Also added step: Given I have a clean site with as a large-grained copier of extensions --HG-- branch : dev
48 lines
1.4 KiB
Gherkin
48 lines
1.4 KiB
Gherkin
Feature: Setup
|
|
In order to install orchard
|
|
As a new user
|
|
I want to setup a new site from the default screen
|
|
|
|
Scenario: Root request shows setup form
|
|
Given I have a clean site
|
|
And I have module "Orchard.Setup"
|
|
And I have theme "SafeMode"
|
|
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
|
|
|
|
Scenario: Setup folder also shows setup form
|
|
Given I have a clean site
|
|
And I have module "Orchard.Setup"
|
|
And I have 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
|
|
Given I have a clean site
|
|
And I have module "Orchard.Setup"
|
|
And I have theme "SafeMode"
|
|
When I go to "/Setup"
|
|
And I hit "Finish Setup"
|
|
Then I should see "Site name is required"
|
|
And I should see "Password is required"
|
|
|
|
Scenario: Calling setup on a brand new install
|
|
Given I have a clean site with
|
|
| extension | name |
|
|
| module | Orchard.Setup |
|
|
| core | Themes |
|
|
| core | Settings |
|
|
| theme | SafeMode |
|
|
And I am on "/Setup"
|
|
When I fill in
|
|
| name | value |
|
|
| SiteName | My Site |
|
|
| AdminPassword | 6655321 |
|
|
And I hit "Finish Setup"
|
|
Then I should see "Blah"
|
|
|