(frontend) enhance document sharing and access management

- Introduced new utility functions for managing document sharing,
including `searchUserToInviteToDoc`, `addMemberToDoc`, and
`updateShareLink`.
- Updated existing tests to verify inherited share access and link
visibility features.
- Refactored document access handling in tests to improve clarity and
maintainability.
- Added comprehensive tests for inherited share functionalities,
ensuring proper role and access management for subpages.
This commit is contained in:
Nathan Panchout
2025-05-19 09:03:00 +02:00
committed by Anthony LC
parent 510d6c3ff1
commit 17ece3b715
9 changed files with 563 additions and 71 deletions

View File

@@ -109,6 +109,11 @@ test.describe('Doc Header', () => {
versions_list: true,
versions_retrieve: true,
update: true,
link_select_options: {
public: ['reader', 'editor'],
authenticated: ['reader', 'editor'],
restricted: null,
},
partial_update: true,
retrieve: true,
},
@@ -134,7 +139,7 @@ test.describe('Doc Header', () => {
await expect(shareModal).toBeVisible();
await expect(page.getByText('Share the document')).toBeVisible();
await expect(page.getByPlaceholder('Type a name or email')).toBeVisible();
// await expect(page.getByPlaceholder('Type a name or email')).toBeVisible();
const invitationCard = shareModal.getByLabel('List invitation card');
await expect(invitationCard).toBeVisible();