mirror of
https://github.com/suitenumerique/docs.git
synced 2026-08-17 21:25:43 +02:00
✅(e2e) fix flaky test on doc move
Some tests on the doc move functionality were flaky, blocking the workflow.
This commit is contained in:
@@ -216,7 +216,9 @@ test.describe('Doc grid move', () => {
|
||||
await input.click();
|
||||
await input.fill(titleDoc2);
|
||||
|
||||
await expect(page.getByRole('option').getByText(titleDoc2)).toBeVisible();
|
||||
await expect(
|
||||
page.getByRole('option').first().getByText(titleDoc2),
|
||||
).toBeVisible();
|
||||
|
||||
// Select the first result
|
||||
await page.keyboard.press('Enter');
|
||||
@@ -359,7 +361,9 @@ test.describe('Doc grid move', () => {
|
||||
await input.click();
|
||||
await input.fill(titleDoc2);
|
||||
|
||||
await expect(page.getByRole('option').getByText(titleDoc2)).toBeVisible();
|
||||
await expect(
|
||||
page.getByRole('option').first().getByText(titleDoc2),
|
||||
).toBeVisible();
|
||||
|
||||
// Select the first result
|
||||
await page.keyboard.press('Enter');
|
||||
|
||||
Reference in New Issue
Block a user