forked from cucumber/cucumber-java-skeleton
-
Notifications
You must be signed in to change notification settings - Fork 2
/
privatelink.feature
38 lines (30 loc) · 1.31 KB
/
privatelink.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
@privatelink @nooc10
Feature: Private Links
As a user
I want to open private links inside the app
so that i will reach directly the referenced content
Background: User is logged in
Given user Alice is logged
Scenario Outline: Item non previewable in non root folder
Given the following items have been created in Alice account
| folder | privlink |
| <type> | <path> |
When Alice opens a private link pointing to <path> with scheme owncloud
Then <type> <name> is opened in the app
Examples:
| type | path | name |
| file | privlink/privateLink1.pdf | privateLink1.pdf |
| folder | privlink/privateLink2 | privateLink2 |
@smoke
Scenario Outline: Previewable file in non root folder
Given the following items have been created in Alice account
| <type> | <path> |
When Alice opens a private link pointing to <path> with scheme owncloud
Then Alice should see the file <name> with textExample
Examples:
| type | path | name |
| file | privateLink3.txt | privateLink3.txt |
Scenario: File not existing
When Alice opens a private link pointing to non-existing item
Then Alice should see the following message
| The user doesn't have access to file |