mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-01-04 16:51:19 +00:00
reload all databases before loading offers
This commit is contained in:
@@ -598,6 +598,7 @@ export default class Collection implements ViewModels.Collection {
|
|||||||
public onSettingsClick = async (): Promise<void> => {
|
public onSettingsClick = async (): Promise<void> => {
|
||||||
useSelectedNode.getState().setSelectedNode(this);
|
useSelectedNode.getState().setSelectedNode(this);
|
||||||
const throughputCap = userContext.databaseAccount?.properties.capacity?.totalThroughputLimit;
|
const throughputCap = userContext.databaseAccount?.properties.capacity?.totalThroughputLimit;
|
||||||
|
await this.container.onRefreshResourcesClick();
|
||||||
throughputCap && throughputCap !== -1 ? await useDatabases.getState().loadAllOffers() : await this.loadOffer();
|
throughputCap && throughputCap !== -1 ? await useDatabases.getState().loadAllOffers() : await this.loadOffer();
|
||||||
// if (throughputCap && throughputCap !== -1) {
|
// if (throughputCap && throughputCap !== -1) {
|
||||||
// try {
|
// try {
|
||||||
|
|||||||
12
test/fx.ts
12
test/fx.ts
@@ -460,12 +460,12 @@ export class DataExplorer {
|
|||||||
const containerNode = await this.waitForContainerNode(context.database.id, context.container.id);
|
const containerNode = await this.waitForContainerNode(context.database.id, context.container.id);
|
||||||
await containerNode.expand();
|
await containerNode.expand();
|
||||||
|
|
||||||
// refresh tree to remove deleted database
|
// // refresh tree to remove deleted database
|
||||||
const refreshButton = this.frame.getByTestId("Sidebar/RefreshButton");
|
// const refreshButton = this.frame.getByTestId("Sidebar/RefreshButton");
|
||||||
await refreshButton.click();
|
// await refreshButton.click();
|
||||||
await expect(this.getConsoleMessage()).toContainText("Successfully refreshed databases", {
|
// await expect(this.getConsoleMessage()).toContainText("Successfully refreshed databases", {
|
||||||
timeout: ONE_MINUTE_MS,
|
// timeout: ONE_MINUTE_MS,
|
||||||
});
|
// });
|
||||||
|
|
||||||
const scaleAndSettingsButton = this.frame.getByTestId(
|
const scaleAndSettingsButton = this.frame.getByTestId(
|
||||||
`TreeNode:${context.database.id}/${context.container.id}/Scale & Settings`,
|
`TreeNode:${context.database.id}/${context.container.id}/Scale & Settings`,
|
||||||
|
|||||||
Reference in New Issue
Block a user