Add test infrastructure and data-test attributes for Container Copy e2e testing

This commit is contained in:
Bikram Choudhury
2026-01-06 22:29:41 +05:30
parent 4ac8cd8fe4
commit d35acaa132
6 changed files with 849 additions and 9 deletions

View File

@@ -1,5 +1,5 @@
// import { expect, test } from "@playwright/test";
// import { DataExplorer, TestAccount } from "../../fx";
// import { DataExplorer, getDropdownItemByNameOrPosition, TestAccount } from "../../fx";
// import { createTestSQLContainer, TestContainerContext } from "../../testData";
// test.describe("Change Partition Key", () => {
@@ -83,8 +83,12 @@
// await changePkPanel.getByLabel("Use existing container").check();
// await changePkPanel.getByText("Choose an existing container").click();
// const containerDropdownItem = await explorer.getDropdownItemByName(newContainerId, "Existing Containers");
// await containerDropdownItem.click();
// const containerDropdownItem = await getDropdownItemByNameOrPosition(
// explorer.frame,
// { name: newContainerId },
// { ariaLabel: "Existing Containers" },
// );
// await containerDropdownItem.click();
// await changePkPanel.getByTestId("Panel/OkButton").click();
// await explorer.frame.getByRole("button", { name: "Cancel" }).click();