Fix format and lint errors in DDM Playwright tests (#2350)

* Initial plan

* Fix format and lint errors in dataMasking.spec.ts

Co-authored-by: sakshigupta12feb <206070758+sakshigupta12feb@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: sakshigupta12feb <206070758+sakshigupta12feb@users.noreply.github.com>
This commit is contained in:
Copilot
2026-01-22 22:19:56 +05:30
committed by GitHub
parent 6c2ad8b001
commit 56bc65f5fb

View File

@@ -4,11 +4,11 @@ import { createTestSQLContainer, TestContainerContext } from "../../testData";
/** /**
* Tests for Dynamic Data Masking (DDM) feature. * Tests for Dynamic Data Masking (DDM) feature.
* *
* Prerequisites: * Prerequisites:
* - Test account must have the EnableDynamicDataMasking capability enabled * - Test account must have the EnableDynamicDataMasking capability enabled
* - If the capability is not enabled, the DataMaskingTab will not be visible and tests will be skipped * - If the capability is not enabled, the DataMaskingTab will not be visible and tests will be skipped
* *
* Important Notes: * Important Notes:
* - Once DDM is enabled on a container, it cannot be disabled (isPolicyEnabled cannot be set to false) * - Once DDM is enabled on a container, it cannot be disabled (isPolicyEnabled cannot be set to false)
* - Tests focus on enabling DDM and modifying the masking policy configuration * - Tests focus on enabling DDM and modifying the masking policy configuration
@@ -32,7 +32,10 @@ test.describe("Data Masking under Scale & Settings", () => {
const isTabVisible = await dataMaskingTab.isVisible().catch(() => false); const isTabVisible = await dataMaskingTab.isVisible().catch(() => false);
if (!isTabVisible) { if (!isTabVisible) {
test.skip(true, "Data Masking tab is not available. Test account may not have EnableDynamicDataMasking capability."); test.skip(
true,
"Data Masking tab is not available. Test account may not have EnableDynamicDataMasking capability.",
);
} }
await dataMaskingTab.click(); await dataMaskingTab.click();
@@ -42,7 +45,7 @@ test.describe("Data Masking under Scale & Settings", () => {
await context?.dispose(); await context?.dispose();
}); });
test("Data Masking editor should be visible", async ({ page }) => { test("Data Masking editor should be visible", async () => {
// Verify the Data Masking editor is visible // Verify the Data Masking editor is visible
const dataMaskingEditor = explorer.frame.locator(".settingsV2Editor"); const dataMaskingEditor = explorer.frame.locator(".settingsV2Editor");
await expect(dataMaskingEditor).toBeVisible(); await expect(dataMaskingEditor).toBeVisible();