@webship.co/workspace-nextcloud 0.0.0-stage → 1.0.1
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 +264 -2
- package/ai/agents/nextcloud-site-builder.md +104 -0
- package/ai/agents/nextcloud-tester.md +116 -0
- package/ai/commands/nextcloud-test.md +75 -0
- package/ai/prompts/nextcloud-build-and-test.md +27 -0
- package/ai/prompts/nextcloud-scenarios-for-an-area.md +26 -0
- package/ai/skills/nextcloud-scenarios/SKILL.md +102 -0
- package/ai/skills/nextcloud-scenarios/examples/account.feature +32 -0
- package/ai/skills/nextcloud-scenarios/examples/files.feature +33 -0
- package/ai/skills/nextcloud-scenarios/examples/sharing.feature +25 -0
- package/commands/cmd-nextcloud-project.sh +31 -0
- package/commands/cmd-tools-nextcloud-occ.sh +26 -0
- package/dist/src/index.d.ts +30 -0
- package/dist/src/index.js +54 -0
- package/dist/src/index.js.map +1 -0
- package/features/nextcloud.feature +36 -0
- package/package.json +99 -4
- package/scripts/args/arg-nextcloud-occ.sh +21 -0
- package/scripts/args/arg-nextcloud.sh +24 -0
- package/scripts/functions/fun-nextcloud.sh +446 -0
- package/scripts/nextcloud-site.sh +212 -0
- package/testing/site.feature +44 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
Feature: The file server answers and its accounts work
|
|
2
|
+
As the owner of the file server
|
|
3
|
+
I want the login, each default account, a file and the accounts page 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-nextcloud-occ.sh --add-users); a scenario logs in by a handle of the
|
|
8
|
+
# users registry in cucumber.js, so no password is written here. It passes on a site built with --install --add-users.
|
|
9
|
+
|
|
10
|
+
@critical
|
|
11
|
+
Scenario: A visitor is sent to the login page
|
|
12
|
+
Given I am not logged in
|
|
13
|
+
Then I should be on the login page
|
|
14
|
+
|
|
15
|
+
Scenario Outline: The <account> account logs in with the login form
|
|
16
|
+
Given I am not logged in
|
|
17
|
+
When I log in as "<account>" with the login form
|
|
18
|
+
Then I should be logged in as "<account>"
|
|
19
|
+
And I should be in the "Dashboard" app
|
|
20
|
+
|
|
21
|
+
Examples:
|
|
22
|
+
| account |
|
|
23
|
+
| administrator |
|
|
24
|
+
| editor |
|
|
25
|
+
| user |
|
|
26
|
+
|
|
27
|
+
Scenario: A wrong password is refused
|
|
28
|
+
Given I am on the login page
|
|
29
|
+
When I log in with the username "user" and the password "Wrong-password-1"
|
|
30
|
+
Then the login should be refused with "Wrong login or password."
|
|
31
|
+
|
|
32
|
+
Scenario: A file is uploaded and opened in the viewer
|
|
33
|
+
Given I am a logged in user with the "user" user
|
|
34
|
+
When I go to the files
|
|
35
|
+
And I upload the file "team-photo.png"
|
|
36
|
+
And I open the file "team-photo.png"
|
|
37
|
+
Then the viewer should show the image "team-photo.png"
|
|
38
|
+
|
|
39
|
+
# The browser logs the refused request (403).
|
|
40
|
+
@js-off
|
|
41
|
+
Scenario: Only an administrator reaches the accounts page
|
|
42
|
+
Given I am a logged in user with the "user" user
|
|
43
|
+
When I go to the accounts page
|
|
44
|
+
Then I should see the error page "Access forbidden"
|