mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-01-30 15:14:19 +00:00
verify document text was set
This commit is contained in:
@@ -73,7 +73,11 @@ for (const { name, databaseId, containerId, documents } of documentTestCases) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
await documentsTab.resultsEditor.setText(JSON.stringify(newDocument));
|
await documentsTab.resultsEditor.setText(JSON.stringify(newDocument));
|
||||||
await page.waitForTimeout(5000); // wait for editor to process changes
|
// Verify that the document text was set correctly
|
||||||
|
await expect
|
||||||
|
.poll(async () => await documentsTab.resultsEditor.text(), { timeout: 5000 })
|
||||||
|
.toEqual(JSON.stringify(newDocument));
|
||||||
|
|
||||||
const saveButton = await explorer.waitForCommandBarButton(CommandBarButton.Save, 5000);
|
const saveButton = await explorer.waitForCommandBarButton(CommandBarButton.Save, 5000);
|
||||||
await saveButton.click({ timeout: 5000 });
|
await saveButton.click({ timeout: 5000 });
|
||||||
await expect(saveButton).toBeHidden({ timeout: 5000 });
|
await expect(saveButton).toBeHidden({ timeout: 5000 });
|
||||||
|
|||||||
Reference in New Issue
Block a user