This repository was archived by the owner on Jul 14, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 207
[tests-only] Add e2e tests for searching #7583
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,93 @@ | ||
| Feature: Search | ||
| As a user | ||
| I want to search for resources | ||
| So that I can find them quickly | ||
|
|
||
| Background: | ||
| Given "Admin" sets the default folder for received shares to "Shares" | ||
| And "Admin" disables share auto accepting | ||
|
|
||
| Scenario: Search in personal spaces | ||
| Given "Admin" creates following users | ||
| | id | | ||
| | Alice | | ||
| | Brian | | ||
| When "Brian" logs in | ||
| And "Brian" opens the "files" app | ||
| And "Brian" creates the following resources | ||
| | resource | type | | ||
| | folder_from_brian | folder | | ||
| And "Brian" uploads the following resources | ||
| | resource | | ||
| | new-lorem-big.txt | | ||
| And "Brian" shares the following resource using the sidebar panel | ||
| | resource | recipient | type | role | | ||
| | folder_from_brian | Alice | user | viewer | | ||
| | new-lorem-big.txt | Alice | user | viewer | | ||
| And "Brian" logs out | ||
| When "Alice" logs in | ||
| And "Alice" navigates to the shared with me page | ||
| And "Alice" accepts the following share | ||
| | name | | ||
| | folder_from_brian | | ||
| | new-lorem-big.txt | | ||
| And "Alice" opens the "files" app | ||
| And "Alice" creates the following resources | ||
| | resource | type | | ||
| | folder | folder | | ||
| | FolDer | folder | | ||
| | PARENT/child | folder | | ||
| | PARENT/child-one | folder | | ||
| | PARENT/child-one/child-two | folder | | ||
| And "Alice" enables the option to display the hidden file | ||
| And "Alice" uploads the following resources | ||
| | resource | | ||
| | new-lorem.txt | | ||
| | .hidden-file.txt | | ||
| 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 | | ||
| # enable these steps after issue https://github.com/owncloud/web/issues/7629 is fixed | ||
| # | new-lorem-big.txt | | ||
| But following resources should not be displayed in the search list for user "Alice" | ||
| | resource | | ||
| | PARENT | | ||
| | folder_from_brian | | ||
| | .hidden-file.txt | | ||
| When "Alice" searches "foldeR" using the global search | ||
| Then following resources should be displayed in the search list for user "Alice" | ||
| | resource | | ||
| | folder | | ||
| | FolDer | | ||
| # enable these steps after issue https://github.com/owncloud/web/issues/7629 is fixed | ||
| # | folder_from_brian | | ||
| But following resources should not be displayed in the search list for user "Alice" | ||
| | resource | | ||
| | new-lorem.txt | | ||
| | new-lorem-big.txt | | ||
| | .hidden-file.txt | | ||
| When "Alice" searches "hidden" using the global search | ||
| Then following resources should be displayed in the search list for user "Alice" | ||
| | resource | | ||
| | .hidden-file.txt | | ||
| But following resources should not be displayed in the search list for user "Alice" | ||
| | resource | | ||
| | folder | | ||
| | FolDer | | ||
| | PARENT | | ||
| | folder_from_brian | | ||
| | new-lorem.txt | | ||
| | new-lorem-big.txt | | ||
| When "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 | | ||
| When "Alice" opens folder "child-one" | ||
| And "Alice" searches "child" using the global search | ||
| Then following resources should be displayed in the search list for user "Alice" | ||
| | resource | | ||
| | child-two | | ||
| And "Alice" logs out |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.