From 574769ba89147e6f2d7e014025a480559f35e755 Mon Sep 17 00:00:00 2001 From: Asier Isayas Date: Fri, 23 Jan 2026 09:13:14 -0800 Subject: [PATCH] when loading a document, wait for document text to appear then click new document --- test/mongo/document.spec.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/mongo/document.spec.ts b/test/mongo/document.spec.ts index 0968ff03c..2b880fea2 100644 --- a/test/mongo/document.spec.ts +++ b/test/mongo/document.spec.ts @@ -50,12 +50,14 @@ 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 ({ page }) => { + test(`should be able to create and delete new document from ${docId}`, async () => { const span = documentsTab.documentsListPane.getByText(docId, { exact: true }).nth(0); await span.waitFor(); await expect(span).toBeVisible(); await span.click(); + expect(await documentsTab.resultsEditor.text()).toContain(docId); + let newDocumentId; let retryCount = 0; await retry(async () => {