-
Notifications
You must be signed in to change notification settings - Fork 671
/
Copy pathtest.feature
114 lines (98 loc) · 5.59 KB
/
test.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
Feature: adding accounts
As a user
I want to be able join multiple owncloud servers to the client
So that I can sync data with various organisations
Background:
Given user "Alice" has been created on the server with default attributes and without skeleton files
Scenario: Check default options in advanced configuration
Given the user has started the client
And the user has entered the following account information:
| server | %local_server% |
| user | Alice |
| password | 1234 |
When the user opens the advanced configuration
Then the download everything option should be selected by default for Linux
And the VFS option should be selected by default for Windows
And the user should be able to choose the local download directory
Scenario: Adding normal Account
Given the user has started the client
When the user adds the following account:
| server | %local_server% |
| user | Alice |
| password | 1234 |
Then the account with displayname "Alice Hansen" and host "%local_server_hostname%" should be displayed
Scenario: Adding multiple accounts
Given user "Brian" has been created on the server with default attributes and without skeleton files
And user "Alice" has set up a client with default settings
When the user opens the add-account dialog
And the user adds the following account:
| server | %local_server% |
| user | Brian |
| password | AaBb2Cc3Dd4 |
Then "Brian Murphy" account should be opened
And the account with displayname "Alice Hansen" and host "%local_server_hostname%" should be displayed
And the account with displayname "Brian Murphy" and host "%local_server_hostname%" should be displayed
@skipOnOCIS
Scenario: Adding account with wrong credentials
Given the user has started the client
And the user has entered the following account information:
| server | %local_server% |
When the user adds the following user credentials:
| user | Alice |
| password | 12345 |
Then the error "Invalid credentials" should be displayed in the account connection wizard
Scenario: Adding account with self signed certificate for the first time
Given the user has started the client
When the user adds the server "%secure_local_server%"
And the user accepts the certificate
Then credentials wizard should be visible
@skipOnLinux
Scenario: Adding account with vfs disabled (Windows only)
Given the user has started the client
And the user has entered the following account information:
| server | %local_server% |
| user | Alice |
| password | 1234 |
When the user selects download everything option in advanced section
Then the "Enable virtual file support" button should be available
@skipOnOC10
Scenario: Add space manually from sync connection window
Given user "Alice" has created folder "simple-folder" in the server
And the user has started the client
And the user has entered the following account information:
| server | %local_server% |
| user | Alice |
| password | 1234 |
When the user selects manual sync folder option in advanced section
And the user syncs the "Personal" space
Then the folder "simple-folder" should exist on the file system
@skipOnOCIS
Scenario: Check for incremented number in bracket while adding new account and folder (OC10)
Given the user has created folder "ownCloud" in the default home path
And the user has started the client
And the user has entered the following account information:
| server | %local_server% |
When the user adds the following user credentials:
| user | Alice |
| password | 1234 |
And the user opens the advanced configuration
Then the default local sync path should contain "%home%/ownCloud (2)" in the configuration wizard
When the user selects download everything option in advanced section
And the user opens the sync connection wizard
Then the default local sync path should contain "%home%/ownCloud (2) (2)" in the sync connection wizard
@skipOnOC10
Scenario: Check for incremented number in bracket while adding new account and folder (oCIS)
Given the user has created folder "ownCloud" in the default home path
And the user has started the client
And the user has entered the following account information:
| server | %local_server% |
When the user adds the following user credentials:
| user | Alice |
| password | 1234 |
And the user opens the advanced configuration
Then the default local sync path should contain "%home%/ownCloud (2)" in the configuration wizard
When the user selects download everything option in advanced section
And the user opens the sync connection wizard
And the user selects the "Personal" space to sync
Then the default local sync path should contain "%home%/ownCloud (2)/Personal" in the sync connection wizard
And the warning "There is already a sync from the server to this local folder. Please pick another local folder!" should appear in the sync connection wizard