✅(frontend) fix flaky e2e on duplicate test
Fix a flaky issue in the e2e test for duplicating a document.
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user