-
Notifications
You must be signed in to change notification settings - Fork 15
/
frontend.feature
77 lines (63 loc) · 2.52 KB
/
frontend.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
73
74
75
76
77
@aws @replatforming @app-frontend
Feature: Frontend
Background:
Given I am testing through the full stack
And I force a varnish cache miss
@notreplatforming
Scenario: Check robots.txt
When I request "/robots.txt"
Then I should see "User-agent:"
@notreplatforming
Scenario: Check transactions load
When I visit "/apply-renew-passport"
Then I should see "UK passport"
Scenario: Check help page loads correctly
When I visit "/help"
Then I should see "Help using GOV.UK"
Scenario: Check homepage content type and charset
When I request "/"
Then I should get a "Content-Type" header of "text/html; charset=utf-8"
@pending
Scenario: Check homepage sends an event to Google Analytics
When I visit "/"
Then the page view should be tracked
@notreplatforming
Scenario: Check 404 page content type and charset
When I visit a non-existent page
Then I should get a "Content-Type" header of "text/html; charset=utf-8"
@notreplatforming
Scenario: Check licences load
When I visit "/busking-licence"
Then I should see "Busking licence"
And I should see an input field for postcode
When I try to post to "/busking-licence" with "postcode=E20+2ST"
Then I should see "Busking licence"
@notreplatforming
Scenario: Check local transactions load
When I visit "/pay-council-tax"
Then I should see "Pay your Council Tax"
When I try to post to "/pay-council-tax" with "postcode=WC2B+6SE"
Then I should see "Camden"
@notreplatforming
Scenario: Check "find my nearest" returns results
When I visit "/ukonline-centre-internet-access-computer-training"
And I should see "Online Centres Network"
When I try to post to "/ukonline-centre-internet-access-computer-training" with "postcode=WC2B+6NH"
Then I should see "Holborn Library"
@notreplatforming
Scenario: Check redirects work
When I visit "/workplacepensions"
Then I should be at a location path of "/workplace-pensions"
Scenario: Check calendars pages
Then I should be able to visit:
| Path |
| /when-do-the-clocks-change |
| /bank-holidays |
Scenario: Check alternative formats are available
Then I should be able to visit:
| Path |
| /when-do-the-clocks-change/united-kingdom.json |
| /when-do-the-clocks-change/united-kingdom.ics |
Scenario: Check bank holidays JSON format is consistent
When I request "/bank-holidays.json"
Then JSON is returned