From 544ac890c6eec2bf1cbf234409ee4186dfc65285 Mon Sep 17 00:00:00 2001 From: Asier Isayas Date: Thu, 22 Jan 2026 13:34:17 -0800 Subject: [PATCH] DEBUG: wait for editor to process changes --- test/mongo/document.spec.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/mongo/document.spec.ts b/test/mongo/document.spec.ts index 60cd0be08..af1095d5f 100644 --- a/test/mongo/document.spec.ts +++ b/test/mongo/document.spec.ts @@ -50,7 +50,7 @@ for (const { name, databaseId, containerId, documents } of documentTestCases) { expect(resultData?._id).not.toBeNull(); expect(resultData?._id).toEqual(docId); }); - test(`should be able to create and delete new document from ${docId}`, async () => { + test(`should be able to create and delete new document from ${docId}`, async ({ page }) => { const span = documentsTab.documentsListPane.getByText(docId, { exact: true }).nth(0); await span.waitFor(); await expect(span).toBeVisible(); @@ -73,6 +73,7 @@ for (const { name, databaseId, containerId, documents } of documentTestCases) { }; await documentsTab.resultsEditor.setText(JSON.stringify(newDocument)); + await page.waitForTimeout(2000); // wait for editor to process changes const saveButton = await explorer.waitForCommandBarButton("Save", 5000); await saveButton.click({ timeout: 5000 }); await expect(saveButton).toBeHidden({ timeout: 5000 });