forked from AgileVentures/WebsiteOne
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pages.feature
62 lines (52 loc) · 2.33 KB
/
pages.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
@vcr
Feature: Static pages
As the site administrator
So that I can get information across to sites visitors
I want there to be static pages
Background:
Given the following pages exist
| title | body |
| About Us | Agile Ventures |
| Sponsors | AV Sponsors |
| Getting Started | Remote Pair Programming |
And the following page revisions exist
| title | revisions |
| About Us | 1 |
And I am on the "home" page
Scenario: Render About Us page
Then I should see link "About Us"
When I click "About Us"
Then I should be on the static "About Us" page
And I should see "About Us"
# Sponsors and Guides scenarios not really needed. To be removed later.
Scenario: See Sponsor Banners
When I am on the "projects" page
Then I see the banners for all sponsors
And I should see link "Become a supporter"
Scenario: Render Sponsors page
When I am on the "projects" page
And I click "Become a supporter"
Then I should be on the static "Sponsors" page
Scenario: There should be a getting started link in the nav bar
When I am on the home page
And I click "Getting Started"
Then I should be on the static "Getting Started" page
And I should see "Getting Started"
And I should see "Remote Pair Programming"
Scenario: Page can have children and children should have a correct url
Given the page "About Us" has a child page with title "SubPage1"
And I am on the static "SubPage1" page
Then the current page url should be "about-us/subpage1"
Scenario: Page should show ancestry details
Given the page "About Us" has a child page with title "SubPage1"
And I am on the static "SubPage1" page
Then I should see ancestry "Agile Ventures >> About Us >> SubPage1"
Scenario: The browser tab text should reflect the page the user is on
Given I am on the "Home" page
Then the "Home" page title should read "Home | AgileVentures"
When I click "About"
Then I should be on the static "About Us" page
And the "About" page title should read "About Us | AgileVentures"
Scenario: The browser tab of the registration page should say AgileVentures
Given I am on the "registration" page
Then the "Sign up" page title should read "AgileVentures"