mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-07-06 20:13:47 +01:00
Clear local storage after opening page
This commit is contained in:
parent
3578ec8827
commit
846cc105d7
@ -14,12 +14,12 @@ test.beforeAll("Create Test Database", async () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
test.beforeEach("Open new query tab", async ({ page }) => {
|
test.beforeEach("Open new query tab", async ({ page }) => {
|
||||||
// Clear previous settings
|
|
||||||
page.evaluate(() => localStorage.removeItem(StorageKey[StorageKey.AppState]));
|
|
||||||
|
|
||||||
// Open a query tab
|
// Open a query tab
|
||||||
explorer = await DataExplorer.open(page, TestAccount.SQL);
|
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.
|
// 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);
|
const containerNode = await explorer.waitForContainerNode(context.database.id, context.container.id);
|
||||||
await containerNode.openContextMenu();
|
await containerNode.openContextMenu();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user