(frontend) fix flaky e2e on duplicate test

Fix a flaky issue in the e2e test for
duplicating a document.
This commit is contained in:
Anthony LC
2025-12-01 14:23:41 +01:00
parent f11543094a
commit c13f0e97bb

View File

@@ -582,8 +582,12 @@ test.describe('Doc Header', () => {
await child.hover();
await child.getByText(`more_horiz`).click();
const currentUrl = page.url();
await page.getByRole('menuitem', { name: 'Duplicate' }).click();
await expect(page).not.toHaveURL(new RegExp(currentUrl));
await verifyDocName(page, duplicateTitle);
await expect(