mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-01-23 19:54:08 +00:00
when loading a document, wait for document text to appear then click new document
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user