create and delete container for every individual scale test

This commit is contained in:
Asier Isayas
2025-12-26 18:10:15 -05:00
parent 45049425c9
commit 5a24db2230

View File

@@ -13,11 +13,8 @@ test.describe("Autoscale and Manual throughput", () => {
let context: TestContainerContext = null!;
let explorer: DataExplorer = null!;
test.beforeAll("Create Test Database", async () => {
test.beforeEach("Create Test Database & Open container settings", async ({ page }) => {
context = await createTestSQLContainer(true);
});
test.beforeEach("Open container settings", async ({ page }) => {
explorer = await DataExplorer.open(page, TestAccount.SQL);
// Click Scale & Settings and open Scale tab
@@ -26,7 +23,7 @@ test.describe("Autoscale and Manual throughput", () => {
await scaleTab.click();
});
test.afterAll("Delete Test Database", async () => {
test.afterEach("Delete Test Database", async () => {
await context?.dispose();
});