@bigbinary/neeto-playwright-commons 1.24.7 → 1.24.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -118437,7 +118437,9 @@ class RolesPage {
118437
118437
  const { permissions } = await this.roleApis
118438
118438
  .fetch("permissions")
118439
118439
  .then(response => response === null || response === void 0 ? void 0 : response.json());
118440
- const permissionObjects = targetPermissions.flatMap(permission => permissions.filter((p) => isGranularPermission ? p.name === permission : p.category === permission));
118440
+ const permissionObjects = targetPermissions.flatMap(permission => permissions.filter((p) => isGranularPermission
118441
+ ? p.description === permission
118442
+ : p.category === permission));
118441
118443
  return pluck("id", permissionObjects);
118442
118444
  };
118443
118445
  this.getRoleIdAndOrganizationId = async (roleName) => {