💬(frontend) change literal occurances of pad to document

- change urls from /pads to /docs
- change part of the litteral occurances of pad to document
This commit is contained in:
Anthony LC
2024-05-27 13:27:49 +02:00
committed by Anthony LC
parent d0d0b44f57
commit 0727fe0273
21 changed files with 132 additions and 116 deletions

View File

@@ -30,14 +30,16 @@ export const createPad = async (
length: number,
isPublic: boolean = false,
) => {
const panel = page.getByLabel('Pads panel').first();
const buttonCreate = page.getByRole('button', { name: 'Create the pad' });
const panel = page.getByLabel('Documents panel').first();
const buttonCreate = page.getByRole('button', {
name: 'Create the document',
});
const randomPads = randomName(padName, browserName, length);
for (let i = 0; i < randomPads.length; i++) {
await panel.getByRole('button', { name: 'Add a pad' }).click();
await page.getByText('Pad name').fill(randomPads[i]);
await panel.getByRole('button', { name: 'Add a document' }).click();
await page.getByText('Document name').fill(randomPads[i]);
if (isPublic) {
await page.getByText('Is it public ?').click();