refresh tree before opening scale and settings

This commit is contained in:
Asier Isayas
2025-12-30 11:22:23 -05:00
parent 1736e24429
commit 459b2c7050
4 changed files with 8 additions and 11 deletions

View File

@@ -5,13 +5,12 @@ import { BulkOperationType, Container, CosmosClient, CosmosClientOptions, Databa
import { AzureIdentityCredentialAdapter } from "@azure/ms-rest-js";
import {
DataExplorer,
generateUniqueName,
getAccountName,
getAzureCLICredentials,
resourceGroupName,
subscriptionId,
TestAccount,
TestAccount
} from "./fx";
export interface TestItem {
@@ -70,14 +69,8 @@ export class TestContainerContext {
public testData: Map<string, TestItem>,
) {}
async dispose(explorer: DataExplorer) {
async dispose() {
await this.database.delete();
// refresh tree to remove deleted database
if (explorer) {
const refreshButton = explorer.frame.getByTestId("Sidebar/RefreshButton");
await refreshButton.click();
}
}
}