@webship.co/workspace-ghost 0.0.0-stage → 1.0.8

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,47 @@
1
+ Feature: The site answers and its accounts work
2
+ As the owner of the site
3
+ I want the front page, the sign in screen and each default account 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 signs 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
+ When I go to the homepage
14
+ Then the response status code should be 200
15
+ And the page should be the home page
16
+
17
+ @critical
18
+ Scenario: The sign in screen is served to a visitor who asks for the admin
19
+ Given I am an anonymous user
20
+ Then the admin screen "Posts" should not be available
21
+ And I should be on the admin screen "sign in"
22
+ And I should not be logged in to the admin
23
+
24
+ Scenario Outline: Each default account signs in and has its role
25
+ Given I am logged in to the admin as "<handle>"
26
+ Then I should be logged in to the admin as "<handle>"
27
+ And the user menu should show "<handle>@example.com"
28
+ When I log in to the admin as "administrator"
29
+ Then I should see the staff user "<handle>" with the role "<role>"
30
+
31
+ Examples:
32
+ | handle | role |
33
+ | administrator | Administrator |
34
+ | editor | Editor |
35
+ | author | Author |
36
+ | contributor | Contributor |
37
+
38
+ Scenario: An account is refused a screen its role may not open
39
+ Given I am logged in to the admin as "contributor"
40
+ Then the admin screen "Settings" should not be available
41
+ And the admin screen "Members" should not be available
42
+
43
+ Scenario: An anonymous visitor has no session
44
+ Given I am an anonymous user
45
+ When I go to the homepage
46
+ Then I should not be logged in to the admin
47
+ And I should see a subscribe button