-
Notifications
You must be signed in to change notification settings - Fork 159
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
[Tests-Only] Moved getCollaboratorsList and getCollaboratorsListNames command into collabratorsDialog #3095
[Tests-Only] Moved getCollaboratorsList and getCollaboratorsListNames command into collabratorsDialog #3095
Conversation
module.exports = { | ||
commands: { | ||
/** | ||
* @param collaborator |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* @param collaborator | |
* @param {string} collaborator |
@@ -4,6 +4,9 @@ const federationSharePostfix = '\nRemote user' | |||
const util = require('util') | |||
const _ = require('lodash') | |||
const { COLLABORATOR_PERMISSION_ARRAY } = require('../../helpers/sharingHelper') | |||
const { client } = require('nightwatch-api') | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -146,7 +149,7 @@ module.exports = { | |||
* @param {string} permissions | |||
*/ | |||
shareWithUserOrGroup: async function (sharee, shareWithGroup = false, role, permissions, remote = false) { | |||
await this.clickCreateShare() | |||
await this.api.page.FilesPageElement.SharingDialog.collaboratorsDialog().clickCreateShare() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
now you can use var collaboratorDialog
8318c09
to
aff2e05
Compare
deleteShareWithUserGroup: function (item) { | ||
const informationSelector = util.format(this.elements.collaboratorInformationByCollaboratorName.selector, item) | ||
deleteShareWithUserGroup: function (collaborator) { | ||
const informationSelector = util.format(this.elements.collaboratorInformationByCollaboratorName.selector, collaborator) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please make sure you dont cross the vertical line on the screen.. Try to make lines shorter.
aff2e05
to
a5e2674
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm! 👍
Description
Function
getCollaboratorsList
andgetCollaboratorsListNames
along with their related methods are moved from sharingDialog PageObject into collabratorsDialog.Related Issue
#2677
Motivation and Context
Appropriate placements for different PO methods and elements
How Has This Been Tested?
Types of changes
Checklist: