@webship.co/workspace-drupal-cms 0.0.0-stage → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,67 @@
1
+ Feature: The site answers, its accounts work and its page builder holds a page
2
+ As the owner of the site
3
+ I want the front page, the login page, each default account, the dashboard and a page of the page builder to work
4
+ So that a build that came out broken is caught before anything else is tested
5
+
6
+ # Placed by the workspace's testing setup as a starting point: it is yours to change.
7
+ # The accounts are the default ones (cmd-tools-add-users.sh); a scenario logs in by a handle of
8
+ # the users registry in cucumber.js, so no password is written here.
9
+
10
+ @critical
11
+ Scenario: The front page is served
12
+ Given I am an anonymous user
13
+ And I am on the homepage
14
+ Then the response status code should be 200
15
+ And I should be on the front page
16
+ And the page should not have PHP errors
17
+
18
+ @critical
19
+ Scenario: The login page is served with its form
20
+ Given I am on the login page
21
+ Then the response status code should be 200
22
+ And I should see the login form
23
+
24
+ Scenario Outline: Each default account logs in
25
+ Given I am a logged in user with the "<handle>" user
26
+ Then I should be logged in
27
+ And the page should return HTTP status 200
28
+
29
+ Examples:
30
+ | handle |
31
+ | admin |
32
+ | content editor |
33
+ | authenticated |
34
+
35
+ Scenario: The administrator sees the dashboard
36
+ Given I am a logged in user with the "admin" user
37
+ And I am on the dashboard
38
+ Then I should see the dashboard
39
+ And I should see the navigation sidebar
40
+ And I should see the "Recent content" dashboard section
41
+
42
+ Scenario: The content editor sees the dashboard and stays out of the people
43
+ Given I am a logged in user with the "content editor" user
44
+ And I am on the dashboard
45
+ Then I should see the dashboard
46
+ And I should be denied access to "/admin/people"
47
+
48
+ Scenario: An account with no role stays out of the administration
49
+ Given I am a logged in user with the "authenticated" user
50
+ Then I should be denied access to "/admin/dashboard"
51
+ And I should be denied access to "/admin/content"
52
+
53
+ Scenario: The page builder holds the home page
54
+ Given the site template is "drupal_cms_starter"
55
+ And I am a logged in user with the "admin" user
56
+ Then the site should have at least 1 Canvas page
57
+ And the "Home" Canvas page should exist
58
+
59
+ Scenario: A visitor is not held up by the consent notice
60
+ Given I am an anonymous user
61
+ And I am on the homepage
62
+ Then I should not see the cookie consent dialog
63
+
64
+ Scenario: An anonymous visitor has no session and no way in
65
+ Given I am not logged in
66
+ Then I should not be logged in
67
+ And I should be denied access to "/admin/dashboard"