When opening scale and settings, refresh databases

This commit is contained in:
Asier Isayas
2025-12-30 12:20:20 -05:00
parent 459b2c7050
commit 44de3ade5c
5 changed files with 24 additions and 10 deletions

View File

@@ -457,12 +457,15 @@ export class DataExplorer {
/** Opens the Scale & Settings panel for the specified container */
async openScaleAndSettings(context: TestContainerContext): Promise<void> {
const containerNode = await this.waitForContainerNode(context.database.id, context.container.id);
await containerNode.expand();
// refresh tree to remove deleted database
const refreshButton = this.frame.getByTestId("Sidebar/RefreshButton");
await refreshButton.click();
const containerNode = await this.waitForContainerNode(context.database.id, context.container.id);
await containerNode.expand();
await expect(this.getConsoleMessage()).toContainText("Successfully refreshed databases", {
timeout: ONE_MINUTE_MS,
});
const scaleAndSettingsButton = this.frame.getByTestId(
`TreeNode:${context.database.id}/${context.container.id}/Scale & Settings`,

View File

@@ -123,4 +123,4 @@ test.describe("Autoscale and Manual throughput", () => {
},
);
};
});
});

View File

@@ -10,7 +10,7 @@ import {
getAzureCLICredentials,
resourceGroupName,
subscriptionId,
TestAccount
TestAccount,
} from "./fx";
export interface TestItem {