@webship.co/workspace-nextcloud 0.0.0-stage → 1.0.0

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,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"