From eff736596f88013913fa8a2edd13dcc69eec6176 Mon Sep 17 00:00:00 2001 From: Asier Isayas Date: Tue, 30 Dec 2025 14:09:53 -0500 Subject: [PATCH] reload all databases before loading offers --- src/Explorer/Tree/Collection.ts | 1 + test/fx.ts | 12 ++++++------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/Explorer/Tree/Collection.ts b/src/Explorer/Tree/Collection.ts index d41eb51a0..c21b21e54 100644 --- a/src/Explorer/Tree/Collection.ts +++ b/src/Explorer/Tree/Collection.ts @@ -598,6 +598,7 @@ export default class Collection implements ViewModels.Collection { public onSettingsClick = async (): Promise => { useSelectedNode.getState().setSelectedNode(this); const throughputCap = userContext.databaseAccount?.properties.capacity?.totalThroughputLimit; + await this.container.onRefreshResourcesClick(); throughputCap && throughputCap !== -1 ? await useDatabases.getState().loadAllOffers() : await this.loadOffer(); // if (throughputCap && throughputCap !== -1) { // try { diff --git a/test/fx.ts b/test/fx.ts index f59e053c6..f163d502e 100644 --- a/test/fx.ts +++ b/test/fx.ts @@ -460,12 +460,12 @@ export class DataExplorer { 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(); - await expect(this.getConsoleMessage()).toContainText("Successfully refreshed databases", { - timeout: ONE_MINUTE_MS, - }); + // // refresh tree to remove deleted database + // const refreshButton = this.frame.getByTestId("Sidebar/RefreshButton"); + // await refreshButton.click(); + // 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`,