♻️(frontend) add user from side modal

We move the add user functionality to a side modal.
The side modal is opened from the share button.
This commit is contained in:
Anthony LC
2024-07-11 10:32:18 +02:00
committed by Anthony LC
parent ff832239d3
commit c2d6e60ae8
17 changed files with 241 additions and 152 deletions

View File

@@ -80,8 +80,7 @@ export const addNewMember = async (
response.status() === 200,
);
await page.getByLabel('Open the document options').click();
await page.getByRole('button', { name: 'Add members' }).click();
await page.getByRole('button', { name: 'Share' }).click();
const inputSearch = page.getByLabel(/Find a member to add to the document/);
@@ -98,8 +97,8 @@ export const addNewMember = async (
await page.getByRole('option', { name: users[index].email }).click();
// Choose a role
await page.getByRole('radio', { name: role }).click();
await page.getByRole('combobox', { name: /Choose a role/ }).click();
await page.getByRole('option', { name: role }).click();
await page.getByRole('button', { name: 'Validate' }).click();
await expect(