delete database after each test

This commit is contained in:
Asier Isayas
2026-01-21 11:05:55 -08:00
parent c971d21698
commit c561a982fb
9 changed files with 10 additions and 32 deletions

View File

@@ -16,12 +16,9 @@ test.describe("Stored Procedures", () => {
explorer = await DataExplorer.open(page, TestAccount.SQL2);
});
// Delete database only if not running in CI
if (!process.env.CI) {
test.afterEach("Delete Test Database", async () => {
await context?.dispose();
});
}
test("Add, execute, and delete stored procedure", async ({ page }, testInfo) => {
void page;

View File

@@ -28,12 +28,9 @@ test.describe("Triggers", () => {
explorer = await DataExplorer.open(page, TestAccount.SQL2);
});
// Delete database only if not running in CI
if (!process.env.CI) {
test.afterEach("Delete Test Database", async () => {
await context?.dispose();
});
}
test("Add and delete trigger", async ({ page }, testInfo) => {
// Open container context menu and click New Trigger

View File

@@ -21,12 +21,9 @@ test.describe("User Defined Functions", () => {
explorer = await DataExplorer.open(page, TestAccount.SQL2);
});
// Delete database only if not running in CI
if (!process.env.CI) {
test.afterEach("Delete Test Database", async () => {
await context?.dispose();
});
}
test("Add, execute, and delete user defined function", async ({ page }, testInfo) => {
// Open container context menu and click New UDF