Skip to content

Commit

Permalink
modified documentation sytle
Browse files Browse the repository at this point in the history
  • Loading branch information
kiranparajuli589 committed Mar 6, 2020
1 parent a80f838 commit a1139ac
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ Feature: Sharing files and folders with internal users
| shareWith | user2 |
| expireDate | 2038-10-12 |
And user "user1" has logged in using the webUI
When user "user1" edits share with user "User Two" of file "lorem.txt" changing following
When the user edits share with user "User Two" of file "lorem.txt" changing following
| expireDate | +7 |
Then user "user2" should have received a share with target "lorem (2).txt" and expiration date in 7 days
And user "user1" should have a share with these details:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -487,12 +487,12 @@ module.exports = {
return this.useXpath().expect.element(collaboratorSelector).to.not.be.present
},
/**
* @param sharer
* @param collaborator
* @param value
*
* @return {Promise<*>}
*/
changeCollaboratorExpiryDate: async function (sharer, collaborator, value) {
changeCollaboratorExpiryDate: async function (collaborator, value) {
await collaboratorDialog.clickEditShare(collaborator)
await this.api.page
.FilesPageElement
Expand Down
15 changes: 5 additions & 10 deletions tests/acceptance/stepDefinitions/sharingContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,8 @@ const shareFileFolder = function (
* create any share using dataTable
*
* @param {string} sharer
* @param {object} dataTable
* @param {string} dataTable.path
* @param {string} dataTable.shareWith
* @param {string} dataTable.expireDate
* @param {string} dataTable.name
* @param {string} dataTable.permissionString
* @param {string} dataTable.password
* @param {object} dataTable (attrs like: path, shareWith, expireDate, name, permissionString,
* password can be passed inside dataTable)
*
* @return void
*/
Expand Down Expand Up @@ -777,15 +772,15 @@ When(
}
)

When('user {string} edits share with user {string} of file/folder/resource {string} changing following',
async function (sharer, collaborator, resource, dataTable) {
When('the user edits share with user {string} of file/folder/resource {string} changing following',
async function (collaborator, resource, dataTable) {
const api = client.page.FilesPageElement
const settings = dataTable.rowsHash()
await api
.appSideBar()
.closeSidebar(100)
.openSharingDialog(resource)
return api.sharingDialog().changeCollaboratorExpiryDate(sharer, collaborator, settings.expireDate)
return api.sharingDialog().changeCollaboratorExpiryDate(collaborator, settings.expireDate)
})

Then('user {string} should be listed as {string} in the collaborators list on the webUI', function (user, role) {
Expand Down

0 comments on commit a1139ac

Please sign in to comment.