-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add e2e tests for searching in personal
- Loading branch information
Showing
5 changed files
with
173 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
Feature: link | ||
As a user | ||
I want to search for resources | ||
So that I can find them quickly | ||
|
||
|
||
Scenario: Search in personal spaces | ||
Given "Admin" creates following users | ||
| id | | ||
| Alice | | ||
When "Alice" logs in | ||
And "Alice" opens the "files" app | ||
And "Alice" creates the following resources | ||
| resource | type | | ||
| folder | folder | | ||
| new-folder | folder | | ||
| FolDer | folder | | ||
| folderPublic | folder | | ||
| public | folder | | ||
When "Alice" searches "fol" using the global search | ||
Then following resources should be displayed in the search list for user "Alice" | ||
| resource | | ||
| folder | | ||
| new-folder | | ||
| FolDer | | ||
| folderPublic | | ||
# Uncomment the following step after this issue is fixed https://github.com/owncloud/ocis/issues/4517 | ||
# But following resource should not be listed in the search list for user "Alice" | ||
# | resource | | ||
# | public | | ||
When "Alice" creates the following resources | ||
| resource | type | | ||
| PARENT/child | folder | | ||
| PARENT/child-one | folder | | ||
| PARENT/child-two | folder | | ||
| PARENT/test-folder | folder | | ||
And "Alice" opens folder "PARENT" | ||
And "Alice" searches "child" using the global search | ||
Then following resources should be displayed in the search list for user "Alice" | ||
| resource | | ||
| child | | ||
| child-one | | ||
| child-two | | ||
But following resources should not be displayed in the search list for user "Alice" | ||
| resource | | ||
| test-folder | | ||
And "Alice" opens the "files" app | ||
And "Alice" searches "foldeR" using the global search | ||
Then following resources should be displayed in the search list for user "Alice" | ||
| resource | | ||
| folder | | ||
| new-folder | | ||
| FolDer | | ||
| folderPublic | | ||
And "Alice" opens the "files" app | ||
When "Alice" uploads the following resources | ||
| resource | | ||
| new-lorem.txt | | ||
| new-lorem-big.txt | | ||
| new-data.zip | | ||
And "Alice" searches "new" using the global search | ||
Then following resources should be displayed in the search list for user "Alice" | ||
| resource | | ||
| new-lorem.txt | | ||
| new-lorem-big.txt | | ||
| new-data.zip | | ||
| new-folder | | ||
And "Alice" opens the "files" app | ||
When "Alice" enables the option to display the hidden file | ||
When "Alice" uploads the following resources | ||
| resource | | ||
| .hidden-file.txt | | ||
And "Alice" searches "hidden" using the global search | ||
Then following resources should be displayed in the search list for user "Alice" | ||
| resource | | ||
| .hidden-file.txt | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
this is a hidden file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters