Move restore flag behind feature flag. Whitelist restorable tabs in for Fabric. Restore e2e tests.

This commit is contained in:
Laurent Nguyen
2024-11-14 15:31:18 +01:00
parent 846cc105d7
commit 35e997a97b
4 changed files with 20 additions and 5 deletions
-4
View File
@@ -1,6 +1,5 @@
import { expect, test } from "@playwright/test";
import { StorageKey } from "../../src/Shared/StorageUtility";
import { DataExplorer, Editor, QueryTab, TestAccount } from "../fx";
import { TestContainerContext, TestItem, createTestSQLContainer } from "../testData";
@@ -17,9 +16,6 @@ test.beforeEach("Open new query tab", async ({ page }) => {
// Open a query tab
explorer = await DataExplorer.open(page, TestAccount.SQL);
// Clear previous settings
page.evaluate(() => localStorage.removeItem(StorageKey[StorageKey.AppState]));
// Container nodes should be visible. The explorer auto-expands database nodes when they are first loaded.
const containerNode = await explorer.waitForContainerNode(context.database.id, context.container.id);
await containerNode.openContextMenu();