From 003db031ea06f9ed6b6793ce0dabdde306cddefe Mon Sep 17 00:00:00 2001 From: Sung-Hyun Kang Date: Fri, 25 Apr 2025 00:23:42 -0500 Subject: [PATCH] Show system partition key value and add test cases --- test/sql/document.spec.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/sql/document.spec.ts b/test/sql/document.spec.ts index 458580d3e..f774f1f49 100644 --- a/test/sql/document.spec.ts +++ b/test/sql/document.spec.ts @@ -27,7 +27,7 @@ for (const { name, databaseId, containerId, documents } of documentTestCases) { }); for (const document of documents) { - const { documentId: docId, partitionKeys } = document; + const { documentId: docId, partitionKeys, skipCreateDelete } = document; test.describe(`Document ID: ${docId}`, () => { test(`should load and view document ${docId}`, async () => { const span = documentsTab.documentsListPane.getByText(docId, { exact: true }).nth(0); @@ -42,7 +42,9 @@ for (const { name, databaseId, containerId, documents } of documentTestCases) { expect(resultText).not.toBeNull(); 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); await span.waitFor(); await expect(span).toBeVisible();