-
Notifications
You must be signed in to change notification settings - Fork 346
/
pages_management.feature
72 lines (64 loc) · 2.34 KB
/
pages_management.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
Feature: Managing pages
In order to create, modify, and delete content from the website
a content editor
wants to manipulate pages in the admin interface
Background:
Given I am logged in as "existing"
Scenario: Listing pages
When I go to "/admin/pages"
Then I should see "Pages"
And I should see "Home"
Scenario: No pages
Given there are no pages
When I go to "/admin/pages"
Then I should see "No Pages"
Scenario: Creating a homepage
Given there are no pages
When I go to "/admin/pages"
And I follow "New Homepage"
Then I should see "New Page"
And there should be a "body" part
And there should be an "extended" part
When I fill in "Page Title" with "My site"
And I fill in "Slug" with "/"
And I fill in "Breadcrumb" with "My site"
And I fill in the "body" content with "Under Construction"
And I fill in the "extended" content with "foobar"
And I select "Published" from "Status"
And I press "Create page"
Then I should be on the sitemap
And I should see "My site"
When I go to "/"
Then I should see "Under Construction"
Scenario: Creating child pages
When I go to "/admin/pages"
And I follow "Add child"
Then I should see "New Page"
And there should be a "body" part
And there should be an "extended" part
When I fill in "Page Title" with "My child"
And I fill in "Slug" with "my-child"
And I fill in "Breadcrumb" with "My child"
And I fill in the "body" content with "Under Construction"
And I fill in the "extended" content with "foobar"
And I select "Published" from "Status"
And I press "Save and Continue Editing"
Then I should see "Edit Page"
And I should see "Under Construction"
When I go to "/my-child"
Then I should see "Under Construction"
Scenario: Delete page
When I go to "/admin/pages"
And I follow "remove page"
Then I should see "permanently remove"
When I press "Delete Pages"
Then I should see "successfully removed"
Scenario: View a page
When I view a page
Then I should see "Edit Page"
Scenario: Change page type
When I edit the "virtual" page
And I select "<normal>" from "Page type"
And I press "Save and Continue Editing"
Then I should see "Edit Page"
And "<normal>" should be selected for "Page type"