refresh databases in test instead of product code

This commit is contained in:
Asier Isayas
2025-12-30 16:59:17 -05:00
parent 2758e6ac72
commit 87d5f84f2e
4 changed files with 16 additions and 21 deletions

View File

@@ -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`,