Skip to content

Commit

Permalink
resolved test case 6
Browse files Browse the repository at this point in the history
  • Loading branch information
alokhyland committed Jun 18, 2024
1 parent f6dd35e commit 7707c31
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -228,11 +228,13 @@ Then(/^I share my "(.+)" search with (.+)/, async function (searchName, username
await permissionButton.waitForVisible();
console.log('permissionButton',permissionButton)

Check failure on line 229 in packages/nuxeo-web-ui-ftest/features/step_definitions/search.js

View workflow job for this annotation

GitHub Actions / lint

Unexpected console statement
await permissionButton.click();
console.log('permissionButtonClick')

Check failure on line 231 in packages/nuxeo-web-ui-ftest/features/step_definitions/search.js

View workflow job for this annotation

GitHub Actions / lint

Unexpected console statement
await permissionView.setPermissions(username, {
permission: 'Read',
timeFrame: 'permanent',
notify: false,
});
console.log('permissionView setprmission done')

Check failure on line 237 in packages/nuxeo-web-ui-ftest/features/step_definitions/search.js

View workflow job for this annotation

GitHub Actions / lint

Unexpected console statement
const createPermissionButton = await permissionView.createPermissionButton;
console.log('createPermissionButton11111',createPermissionButton)

Check failure on line 239 in packages/nuxeo-web-ui-ftest/features/step_definitions/search.js

View workflow job for this annotation

GitHub Actions / lint

Unexpected console statement
await createPermissionButton.waitForVisible();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ export default class DocumentPermissions extends BasePage {
}

async setPermissions(name, opts) {
console.log('inside set permission 1')
opts = opts || {};
const permission = opts.permission || '';
const timeFrame = opts.timeFrame || '';
Expand All @@ -101,18 +102,23 @@ export default class DocumentPermissions extends BasePage {
const { notify } = opts;
if (name) {
await this.setFieldValue('userGroup', name);
console.log('inside set permission 2')
}
await this.setFieldValue('right', permission);
console.log('inside set permission 3')
const timeButton = await this.timeFrameButton;
console.log('timeButton', timeButton)
console.log('inside set permission 4', timeButton)
await timeButton.click();
console.log('inside set permission 5')
if (timeFrame === 'datebased') {
await this.setFieldValue('begin', begin);
console.log('inside set permission 6')
if (end) {
await this.setFieldValue('end', end);
}
}
await this.setFieldValue('notify', notify);
console.log('inside set permission 7')
}

async editPermissions(opts) {
Expand Down

0 comments on commit 7707c31

Please sign in to comment.