Skip to content

Commit

Permalink
Acceptance test to assert autocompletion isnt present for non-existin…
Browse files Browse the repository at this point in the history
…g users or groups
  • Loading branch information
jasson99 committed Oct 23, 2019
1 parent bda01bc commit 70e85c6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,13 @@ 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 a tooltip with the text "No users or groups found for doesnotexist" should be shown near the share-with-field 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 @@ -445,3 +445,6 @@ Then('the collaborators list for file/folder/resource {string} should be empty',
Then('the file/folder/resource {string} on the webUI should be in {string} state', function (filename, status) {
return client.page.sharedWithMePage().assertFileStatusIsShown(filename, status)
})
Then('the autocomplete list should not be displayed on the webUI', function () {
return client.page.FilesPageElement.sharingDialog().assertAutocompleteListIsNotVisible()
})

0 comments on commit 70e85c6

Please sign in to comment.