(frontend) interlinking custom inline content

We want to be able to interlink documents in the editor.
We created a custom inline content that allows
users to interlink documents.
This commit is contained in:
Anthony LC
2025-04-23 18:41:11 +02:00
parent afa48b6675
commit 155e7dfe22
21 changed files with 685 additions and 153 deletions

View File

@@ -78,17 +78,11 @@ export const createDoc = async (
docName: string,
browserName: string,
length: number = 1,
isChild: boolean = false,
isMobile: boolean = false,
) => {
const randomDocs = randomName(docName, browserName, length);
for (let i = 0; i < randomDocs.length; i++) {
if (!isChild && !isMobile) {
const header = page.locator('header').first();
await header.locator('h2').getByText('Docs').click();
}
if (isMobile) {
await page
.getByRole('button', { name: 'Open the header menu' })