@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.
- package/README.md +208 -2
- package/ai/agents/ghost-site-builder.md +131 -0
- package/ai/agents/ghost-tester.md +144 -0
- package/ai/commands/ghost-test.md +87 -0
- package/ai/prompts/ghost-build-and-test.md +27 -0
- package/ai/skills/ghost-scenarios/SKILL.md +288 -0
- package/ai/skills/ghost-scenarios/examples/front-end.feature +32 -0
- package/ai/skills/ghost-scenarios/examples/post-lifecycle.feature +24 -0
- package/ai/skills/ghost-scenarios/examples/roles-and-screens.feature +31 -0
- package/commands/cmd-ghost-project.sh +33 -0
- package/commands/cmd-tools-ghost-cli.sh +26 -0
- package/dist/src/index.d.ts +29 -0
- package/dist/src/index.js +50 -0
- package/dist/src/index.js.map +1 -0
- package/docs/plugin-items-pattern.md +145 -0
- package/features/ghost.feature +30 -0
- package/package.json +96 -4
- package/scripts/args/arg-ghost-cli.sh +25 -0
- package/scripts/args/arg-ghost.sh +21 -0
- package/scripts/functions/fun-ghost.sh +464 -0
- package/scripts/ghost-accounts.js +175 -0
- package/testing/site.feature +47 -0
|
@@ -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
|