diff --git a/src/Explorer/Controls/ThroughputInput/ThroughputInput.tsx b/src/Explorer/Controls/ThroughputInput/ThroughputInput.tsx index 13a0923f3..02b6853ca 100644 --- a/src/Explorer/Controls/ThroughputInput/ThroughputInput.tsx +++ b/src/Explorer/Controls/ThroughputInput/ThroughputInput.tsx @@ -286,6 +286,7 @@ export const ThroughputInput: FunctionComponent = ({ { const keyspaceId = generateUniqueName("db"); @@ -14,6 +14,7 @@ test("Cassandra keyspace and table CRUD", async ({ page }) => { async (panel, okButton) => { await panel.getByPlaceholder("Type a new keyspace id").fill(keyspaceId); await panel.getByPlaceholder("Enter table Id").fill(tableId); + await panel.getByTestId("autoscaleRUInput").fill(TEST_AUTOSCALE_THROUGHPUT_RU.toString()); await okButton.click(); }, { closeTimeout: 5 * 60 * 1000 }, diff --git a/test/fx.ts b/test/fx.ts index e7458695c..088dde82a 100644 --- a/test/fx.ts +++ b/test/fx.ts @@ -54,6 +54,7 @@ export const defaultAccounts: Record = { export const resourceGroupName = process.env.DE_TEST_RESOURCE_GROUP ?? "de-e2e-tests"; export const subscriptionId = process.env.DE_TEST_SUBSCRIPTION_ID ?? "69e02f2d-f059-4409-9eac-97e8a276ae2c"; +export const TEST_AUTOSCALE_THROUGHPUT_RU = 1000; function tryGetStandardName(accountType: TestAccount) { if (process.env.DE_TEST_ACCOUNT_PREFIX) { diff --git a/test/gremlin/container.spec.ts b/test/gremlin/container.spec.ts index f2efdb214..5abaa481a 100644 --- a/test/gremlin/container.spec.ts +++ b/test/gremlin/container.spec.ts @@ -1,6 +1,6 @@ import { expect, test } from "@playwright/test"; -import { DataExplorer, TestAccount, generateUniqueName } from "../fx"; +import { DataExplorer, TEST_AUTOSCALE_THROUGHPUT_RU, TestAccount, generateUniqueName } from "../fx"; test("Gremlin graph CRUD", async ({ page }) => { const databaseId = generateUniqueName("db"); @@ -16,6 +16,7 @@ test("Gremlin graph CRUD", async ({ page }) => { await panel.getByPlaceholder("Type a new database id").fill(databaseId); await panel.getByRole("textbox", { name: "Graph id, Example Graph1" }).fill(graphId); await panel.getByRole("textbox", { name: "Partition key" }).fill("/pk"); + await panel.getByTestId("autoscaleRUInput").fill(TEST_AUTOSCALE_THROUGHPUT_RU.toString()); await okButton.click(); }, { closeTimeout: 5 * 60 * 1000 }, diff --git a/test/mongo/container.spec.ts b/test/mongo/container.spec.ts index a896d4656..c3d8c8895 100644 --- a/test/mongo/container.spec.ts +++ b/test/mongo/container.spec.ts @@ -1,6 +1,6 @@ import { expect, test } from "@playwright/test"; -import { DataExplorer, TestAccount, generateUniqueName } from "../fx"; +import { DataExplorer, TEST_AUTOSCALE_THROUGHPUT_RU, TestAccount, generateUniqueName } from "../fx"; ( [ @@ -21,6 +21,7 @@ import { DataExplorer, TestAccount, generateUniqueName } from "../fx"; await panel.getByPlaceholder("Type a new database id").fill(databaseId); await panel.getByRole("textbox", { name: "Collection id, Example Collection1" }).fill(collectionId); await panel.getByRole("textbox", { name: "Shard key" }).fill("pk"); + await panel.getByTestId("autoscaleRUInput").fill(TEST_AUTOSCALE_THROUGHPUT_RU.toString()); await okButton.click(); }, { closeTimeout: 5 * 60 * 1000 }, diff --git a/test/sql/container.spec.ts b/test/sql/container.spec.ts index 2fbad2462..23340844c 100644 --- a/test/sql/container.spec.ts +++ b/test/sql/container.spec.ts @@ -1,6 +1,6 @@ import { expect, test } from "@playwright/test"; -import { DataExplorer, TestAccount, generateUniqueName } from "../fx"; +import { DataExplorer, TEST_AUTOSCALE_THROUGHPUT_RU, TestAccount, generateUniqueName } from "../fx"; test("SQL database and container CRUD", async ({ page }) => { const databaseId = generateUniqueName("db"); @@ -15,6 +15,7 @@ test("SQL database and container CRUD", async ({ page }) => { await panel.getByPlaceholder("Type a new database id").fill(databaseId); await panel.getByRole("textbox", { name: "Container id, Example Container1" }).fill(containerId); await panel.getByRole("textbox", { name: "Partition key" }).fill("/pk"); + await panel.getByTestId("autoscaleRUInput").fill(TEST_AUTOSCALE_THROUGHPUT_RU.toString()); await okButton.click(); }, { closeTimeout: 5 * 60 * 1000 }, diff --git a/test/tables/container.spec.ts b/test/tables/container.spec.ts index 8d8efda59..c3fc70f66 100644 --- a/test/tables/container.spec.ts +++ b/test/tables/container.spec.ts @@ -1,6 +1,6 @@ import { expect, test } from "@playwright/test"; -import { DataExplorer, TestAccount, generateUniqueName } from "../fx"; +import { DataExplorer, TEST_AUTOSCALE_THROUGHPUT_RU, TestAccount, generateUniqueName } from "../fx"; test("Tables CRUD", async ({ page }) => { const tableId = generateUniqueName("table"); // A unique table name IS needed because the database is shared when using Table Storage. @@ -12,7 +12,7 @@ test("Tables CRUD", async ({ page }) => { "New Table", async (panel, okButton) => { await panel.getByRole("textbox", { name: "Table id, Example Table1" }).fill(tableId); - await panel.getByLabel("Table Max RU/s").fill("1000"); + await panel.getByTestId("autoscaleRUInput").fill(TEST_AUTOSCALE_THROUGHPUT_RU.toString()); await okButton.click(); }, { closeTimeout: 5 * 60 * 1000 },