Fix e2e test

This commit is contained in:
Laurent Nguyen
2024-11-05 18:12:25 +01:00
parent 23a7e9925b
commit 28909b095d
+4
View File
@@ -1,5 +1,6 @@
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";
@@ -13,6 +14,9 @@ test.beforeAll("Create Test Database", async () => {
});
test.beforeEach("Open new query tab", async ({ page }) => {
// Clear previous settings
localStorage.removeItem(StorageKey[StorageKey.AppState]);
// Open a query tab
explorer = await DataExplorer.open(page, TestAccount.SQL);