Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Acceptance test to assert autocompletion isnt present for non-existin… #2303

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,12 @@ Feature: Autocompletion of share-with names
But only users and groups that contain the string "fi" in their name or displayname should be listed in the autocomplete list on the webUI
And the users own name should not be listed in the autocomplete list on the webUI

@skip @yetToImplement
Scenario: autocompletion for a pattern that does not match any user or group
Given user "regularuser" has logged in using the webUI
And the user has browsed to the files page
And the user has opened the share dialog for folder "simple-folder"
When the user types "doesnotexist" in the share-with-field
Then a tooltip with the text "No users or groups found for doesnotexist" should be shown near the share-with-field on the webUI
And the autocomplete list should not be displayed on the webUI
Then the autocomplete list should not be displayed on the webUI

@skip @yetToImplement
Scenario: autocomplete short user/display names when completely typed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,9 @@ module.exports = {
*/
getUserSharePostfix: function () {
return userSharePostfix
},
assertAutocompleteListIsNotVisible: function () {
return this.waitForElementNotVisible('@sharingAutoCompleteDropDown')
}
},
elements: {
Expand Down
3 changes: 3 additions & 0 deletions tests/acceptance/stepDefinitions/sharingContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -464,3 +464,6 @@ Then('the file {string} should be in {string} state on the webUI after a page re
await client.refresh()
return client.page.sharedWithMePage().assertDesiredStatusIsPresent(filename, status)
})
Then('the autocomplete list should not be displayed on the webUI', function () {
return client.page.FilesPageElement.sharingDialog().assertAutocompleteListIsNotVisible()
})