(frontend) update meta title for docs page

We update the meta title for the docs page
with the title of the document.
It will be easier for the user
to identify the document in their browser tab,
in their bookmarks and history.
This commit is contained in:
Anthony LC
2024-09-05 12:45:02 +02:00
committed by Anthony LC
parent 92102e4a36
commit 48d3738ec2
4 changed files with 18 additions and 1 deletions

View File

@@ -55,6 +55,10 @@ test.describe('Doc Create', () => {
true,
);
expect(await page.locator('title').textContent()).toMatch(
/My new doc - Docs/,
);
const header = page.locator('header').first();
await header.locator('h2').getByText('Docs').click();