⚡️(e2e) remove unnecessary page.goto
Multiple page.goto can cause flakiness. An page.goto is already called in the beforeEach, so we don't need to call it again in the test.
This commit is contained in:
@@ -132,8 +132,6 @@ test.describe('Documents Panel', () => {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
await page.goto('/');
|
|
||||||
|
|
||||||
const panel = page.getByLabel('Documents panel').first();
|
const panel = page.getByLabel('Documents panel').first();
|
||||||
await expect(panel.locator('li')).toHaveCount(20);
|
await expect(panel.locator('li')).toHaveCount(20);
|
||||||
await panel.getByText(`My document-1-16`).click();
|
await panel.getByText(`My document-1-16`).click();
|
||||||
|
|||||||
Reference in New Issue
Block a user