wait for results to attach

This commit is contained in:
Asier Isayas
2026-01-23 13:25:35 -08:00
parent 19ffb5696d
commit 7eecfa28c5

View File

@@ -56,7 +56,8 @@ for (const { name, databaseId, containerId, documents } of documentTestCases) {
await expect(span).toBeVisible();
await span.click();
await page.waitForTimeout(5000); // wait for 5 seconds to ensure document is fully loaded
await expect(documentsTab.resultsEditor.locator).toBeAttached({ timeout: 60 * 1000 });
// await page.waitForTimeout(5000); // wait for 5 seconds to ensure document is fully loaded. waitforTimeout is not recommended generally but here we are working around flakiness in the test env
let newDocumentId;
let retryCount = 0;
await retry(async () => {