mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-19 17:01:13 +00:00
Show system partition key value and add test cases
This commit is contained in:
@@ -26,7 +26,7 @@ for (const { name, databaseId, containerId, documents } of documentTestCases) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
for (const document of documents) {
|
for (const document of documents) {
|
||||||
const { documentId: docId, partitionKeys } = document;
|
const { documentId: docId, partitionKeys, skipCreateDelete } = document;
|
||||||
test.describe(`Document ID: ${docId}`, () => {
|
test.describe(`Document ID: ${docId}`, () => {
|
||||||
test(`should load and view document ${docId}`, async () => {
|
test(`should load and view document ${docId}`, async () => {
|
||||||
const span = documentsTab.documentsListPane.getByText(docId, { exact: true }).nth(0);
|
const span = documentsTab.documentsListPane.getByText(docId, { exact: true }).nth(0);
|
||||||
@@ -41,7 +41,9 @@ for (const { name, databaseId, containerId, documents } of documentTestCases) {
|
|||||||
expect(resultText).not.toBeNull();
|
expect(resultText).not.toBeNull();
|
||||||
expect(resultData?.id).toEqual(docId);
|
expect(resultData?.id).toEqual(docId);
|
||||||
});
|
});
|
||||||
test(`should be able to create and delete new document from ${docId}`, async ({ page }) => {
|
|
||||||
|
const testOrSkip = skipCreateDelete ? test.skip : test;
|
||||||
|
testOrSkip(`should be able to create and delete new document from ${docId}`, async ({ page }) => {
|
||||||
const span = documentsTab.documentsListPane.getByText(docId, { exact: true }).nth(0);
|
const span = documentsTab.documentsListPane.getByText(docId, { exact: true }).nth(0);
|
||||||
await span.waitFor();
|
await span.waitFor();
|
||||||
await expect(span).toBeVisible();
|
await expect(span).toBeVisible();
|
||||||
|
|||||||
Reference in New Issue
Block a user