♻️(frontend) bind ui with ability access

Some actions were not available in the frontend
but allowed in the backend, this commit binds the frontend
ui with the ability access coming from the backend.
This commit is contained in:
Anthony LC
2025-04-23 09:49:09 +02:00
parent 7f0eb9117e
commit 9ca79688c9
7 changed files with 156 additions and 153 deletions

View File

@@ -79,7 +79,7 @@ test.describe('Doc Export', () => {
})
.click();
await page
void page
.getByRole('button', {
name: 'Download',
})
@@ -129,7 +129,7 @@ test.describe('Doc Export', () => {
await page.getByRole('combobox', { name: 'Format' }).click();
await page.getByRole('option', { name: 'Docx' }).click();
await page
void page
.getByRole('button', {
name: 'Download',
})
@@ -206,7 +206,7 @@ test.describe('Doc Export', () => {
await new Promise((resolve) => setTimeout(resolve, 1000));
await page
void page
.getByRole('button', {
name: 'Download',
})
@@ -254,7 +254,7 @@ test.describe('Doc Export', () => {
})
.click();
await page
void page
.getByRole('button', {
name: 'Download',
})
@@ -298,7 +298,7 @@ test.describe('Doc Export', () => {
})
.click();
await page
void page
.getByRole('button', {
name: 'Download',
})

View File

@@ -152,12 +152,7 @@ test.describe('Document list members', () => {
await expect(soloOwner).toBeHidden();
await list.click();
const otherOwner = page.getByText(
`You cannot update the role or remove other owner.`,
);
await newUserRoles.click();
await expect(otherOwner).toBeVisible();
await list.click();
await currentUserRole.click();