Clear local storage after opening page

This commit is contained in:
Laurent Nguyen 2024-11-05 20:50:40 +01:00
parent 3578ec8827
commit 846cc105d7

View File

@ -14,12 +14,12 @@ test.beforeAll("Create Test Database", async () => {
});
test.beforeEach("Open new query tab", async ({ page }) => {
// Clear previous settings
page.evaluate(() => localStorage.removeItem(StorageKey[StorageKey.AppState]));
// 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();