Update row action tests to revoke explicit view permissions when testing triggering against views

This commit is contained in:
Andrew Kingston 2024-09-23 10:08:21 +01:00
parent 162bfdef9b
commit 51e09ddf7b
No known key found for this signature in database
1 changed files with 9 additions and 0 deletions

View File

@ -826,11 +826,20 @@ describe("/rowsActions", () => {
)
).id
// Allow row action on view
await config.api.rowAction.setViewPermission(
tableId,
viewId,
rowAction.id
)
// Delete explicit view permissions so they inherit table permissions
await config.api.permission.revoke({
level: PermissionLevel.READ,
resourceId: viewId,
roleId: "inherited",
})
return { permissionResource: tableId, triggerResouce: viewId }
},
],