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

[Tests-Only] Moved getCollaboratorsList and getCollaboratorsListNames command into collabratorsDialog #3095

Conversation

swoichha
Copy link
Contributor

@swoichha swoichha commented Feb 26, 2020

Description

Function getCollaboratorsList and getCollaboratorsListNames 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?

  • locally

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:

module.exports = {
commands: {
/**
* @param collaborator
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* @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')

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change

@@ -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()
Copy link
Contributor

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

@swoichha swoichha force-pushed the sharingDialog-PageObjectSplit-getCollaboratorsList branch 2 times, most recently from 8318c09 to aff2e05 Compare February 26, 2020 09:41
deleteShareWithUserGroup: function (item) {
const informationSelector = util.format(this.elements.collaboratorInformationByCollaboratorName.selector, item)
deleteShareWithUserGroup: function (collaborator) {
const informationSelector = util.format(this.elements.collaboratorInformationByCollaboratorName.selector, collaborator)
Copy link
Contributor

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.

@swoichha swoichha force-pushed the sharingDialog-PageObjectSplit-getCollaboratorsList branch from aff2e05 to a5e2674 Compare February 27, 2020 07:12
@swoichha swoichha marked this pull request as ready for review February 27, 2020 07:13
@swoichha swoichha requested a review from jasson99 February 27, 2020 07:14
Copy link
Contributor

@kiranparajuli589 kiranparajuli589 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm! 👍

@individual-it individual-it merged commit 53c5d4a into owncloud:master Feb 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants