mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
Merge pull request #2346 from open-sausages/pulls/4.3/fix-form-clearing
Add test to make sure you can create a page under another page
This commit is contained in:
commit
5269036e93
@ -3,12 +3,27 @@ Feature: Create a page
|
|||||||
I want to create a page in the CMS
|
I want to create a page in the CMS
|
||||||
So that I can grow my website
|
So that I can grow my website
|
||||||
|
|
||||||
@javascript
|
Background:
|
||||||
Scenario: I can create a page from the pages section
|
Given a "page" "MyPage"
|
||||||
Given I am logged in with "ADMIN" permissions
|
Given I am logged in with "ADMIN" permissions
|
||||||
And I go to "/admin/pages"
|
And I go to "/admin/pages"
|
||||||
|
Then I should see "MyPage" in the tree
|
||||||
And I should see a "Add new" button in CMS Content Toolbar
|
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
|
When I press the "Add new" button
|
||||||
And I select the "Page" radio button
|
And I select the "Page" radio button
|
||||||
And I press the "Create" button
|
And I press the "Create" button
|
||||||
Then I should see an edit page form
|
Then I should see an edit page form
|
||||||
|
|
||||||
|
@javascript
|
||||||
|
Scenario: I can create a page under another page
|
||||||
|
Given I go to "/admin/pages"
|
||||||
|
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
|
||||||
|
And I select the "Page" radio button
|
||||||
|
And I press the "Create" button
|
||||||
|
Then I should see an edit page form
|
||||||
|
Loading…
Reference in New Issue
Block a user