From 151ce0ac3a797435f87853da4d28f2ffa963c1e0 Mon Sep 17 00:00:00 2001 From: Sindhu Balasubramanian Date: Tue, 13 Jan 2026 16:52:49 -0800 Subject: [PATCH] Fix tests --- test/sql/scaleAndSettings/sharedThroughput.spec.ts | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/test/sql/scaleAndSettings/sharedThroughput.spec.ts b/test/sql/scaleAndSettings/sharedThroughput.spec.ts index 197f60354..bbe1adb89 100644 --- a/test/sql/scaleAndSettings/sharedThroughput.spec.ts +++ b/test/sql/scaleAndSettings/sharedThroughput.spec.ts @@ -83,10 +83,12 @@ test.describe("Database with Shared Throughput", () => { return explorer.frame.getByTestId(`${type}-throughput-input`); }; - test.afterEach(async () => { - // Clean up: delete the created database - await dbContext?.dispose(); - }); + // Delete database only if not running in CI + if (!process.env.CI) { + test.afterEach("Delete Test Database", async () => { + await dbContext?.dispose(); + }); + } test.describe("Manual Throughput Tests", () => { test.beforeEach(async ({ page }) => { @@ -119,7 +121,8 @@ test.describe("Database with Shared Throughput", () => { await explorer.waitForNode(dbContext.database.id); // Add a container to the shared database via UI - await explorer.frame.getByRole("button", { name: "New Container" }).click(); + const newContainerButton = await explorer.globalCommandButton("New Container"); + await newContainerButton.click(); await explorer.whilePanelOpen( "New Container",