silverstripe-cms/tests/behat/features/create-a-page.feature

30 lines
983 B
Gherkin
Raw Normal View History

2012-11-09 19:15:54 +01:00
Feature: Create a page
2016-02-15 02:58:24 +01:00
As an author
I want to create a page in the CMS
So that I can grow my website
2012-11-09 19:15:54 +01:00
Background:
Given a "page" "MyPage"
2016-02-15 02:58:24 +01:00
Given I am logged in with "ADMIN" permissions
And I go to "/admin/pages"
Then I should see "MyPage" in the tree
2016-02-15 02:58:24 +01:00
And I should see a "Add new" button in CMS Content Toolbar
@javascript
Scenario: I can create a page from the pages section
Given I go to "/admin/pages"
When I press the "Add new" button
And I select the "Page" radio button
And I press the "Create" button
Then I should see an edit page form
@javascript
Scenario: I can create a page under another page
Given I go to "/admin/pages"
2016-02-15 02:58:24 +01:00
When I press the "Add new" button
And I select the "Under another page" radio button
And I select "MyPage" in the "#Form_AddForm_ParentID_Holder" tree dropdown
2016-02-15 02:58:24 +01:00
And I select the "Page" radio button
And I press the "Create" button
Then I should see an edit page form