🚚(frontend) move to members/members-add

Move addUsers to members/members-add.
Rename some of the occurences of user to member.
This commit is contained in:
Anthony LC
2024-05-31 11:10:29 +02:00
committed by Anthony LC
parent 327a5f2ed4
commit e2586b1d8e
14 changed files with 60 additions and 50 deletions

View File

@@ -16,9 +16,9 @@ test.describe('Document add users', () => {
await createPad(page, 'select-multi-users', browserName, 1);
await page.getByLabel('Open the document options').click();
await page.getByRole('button', { name: 'Add a user' }).click();
await page.getByRole('button', { name: 'Add members' }).click();
const inputSearch = page.getByLabel(/Find a user to add to the document/);
const inputSearch = page.getByLabel(/Find a member to add to the document/);
await expect(inputSearch).toBeVisible();
// Select user 1
@@ -77,9 +77,9 @@ test.describe('Document add users', () => {
await createPad(page, 'user-invitation', browserName, 1);
await page.getByLabel('Open the document options').click();
await page.getByRole('button', { name: 'Add a user' }).click();
await page.getByRole('button', { name: 'Add members' }).click();
const inputSearch = page.getByLabel(/Find a user to add to the document/);
const inputSearch = page.getByLabel(/Find a member to add to the document/);
const email = randomName('test@test.fr', browserName, 1)[0];
await inputSearch.fill(email);
@@ -127,9 +127,9 @@ test.describe('Document add users', () => {
await createPad(page, 'user-twice', browserName, 1);
await page.getByLabel('Open the document options').click();
await page.getByRole('button', { name: 'Add a user' }).click();
await page.getByRole('button', { name: 'Add members' }).click();
const inputSearch = page.getByLabel(/Find a user to add to the document/);
const inputSearch = page.getByLabel(/Find a member to add to the document/);
await inputSearch.fill('user');
const responseSearchUser = await responsePromiseSearchUser;
const users = (await responseSearchUser.json()).results as {
@@ -152,7 +152,7 @@ test.describe('Document add users', () => {
expect(responseAddMember.ok()).toBeTruthy();
await page.getByLabel('Open the document options').click();
await page.getByRole('button', { name: 'Add a user' }).click();
await page.getByRole('button', { name: 'Add members' }).click();
await inputSearch.fill('user');
await expect(
@@ -167,9 +167,9 @@ test.describe('Document add users', () => {
await createPad(page, 'invitation-twice', browserName, 1);
await page.getByLabel('Open the document options').click();
await page.getByRole('button', { name: 'Add a user' }).click();
await page.getByRole('button', { name: 'Add members' }).click();
const inputSearch = page.getByLabel(/Find a user to add to the document/);
const inputSearch = page.getByLabel(/Find a member to add to the document/);
const email = randomName('test@test.fr', browserName, 1)[0];
await inputSearch.fill(email);
@@ -191,7 +191,7 @@ test.describe('Document add users', () => {
expect(responseCreateInvitation.ok()).toBeTruthy();
await page.getByLabel('Open the document options').click();
await page.getByRole('button', { name: 'Add a user' }).click();
await page.getByRole('button', { name: 'Add members' }).click();
await inputSearch.fill(email);
await expect(page.getByRole('option', { name: email })).toBeHidden();

View File

@@ -177,7 +177,7 @@ test.describe('Pad Tools', () => {
await page.getByLabel('Open the document options').click();
await expect(
page.getByRole('button', { name: 'Add a user' }),
page.getByRole('button', { name: 'Add members' }),
).toBeVisible();
await expect(
page.getByRole('button', { name: 'Generate PDF' }),
@@ -230,7 +230,9 @@ test.describe('Pad Tools', () => {
await page.getByLabel('Open the document options').click();
await expect(page.getByRole('button', { name: 'Add a user' })).toBeHidden();
await expect(
page.getByRole('button', { name: 'Add members' }),
).toBeHidden();
await expect(
page.getByRole('button', { name: 'Generate PDF' }),
).toBeVisible();
@@ -282,7 +284,9 @@ test.describe('Pad Tools', () => {
await page.getByLabel('Open the document options').click();
await expect(page.getByRole('button', { name: 'Add a user' })).toBeHidden();
await expect(
page.getByRole('button', { name: 'Add members' }),
).toBeHidden();
await expect(
page.getByRole('button', { name: 'Generate PDF' }),
).toBeVisible();