when loading a document, wait for document text to appear then click new document

This commit is contained in:
Asier Isayas
2026-01-23 09:13:14 -08:00
parent a5e7b53783
commit 574769ba89

View File

@@ -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 () => {