dont delete database after every test. leave it to the CI

This commit is contained in:
Asier Isayas
2025-12-31 13:20:20 -05:00
parent 644226d800
commit 7ddedf3314
3 changed files with 17 additions and 11 deletions

View File

@@ -23,9 +23,9 @@ test.describe("Change Partition Key", () => {
await PartitionKeyTab.click();
});
test.afterAll("Delete Test Database", async () => {
await context?.dispose();
});
// test.afterAll("Delete Test Database", async () => {
// await context?.dispose();
// });
test("Change partition key path", async () => {
await expect(explorer.frame.getByText("/partitionKey")).toBeVisible();

View File

@@ -13,8 +13,11 @@ test.describe("Autoscale and Manual throughput", () => {
let context: TestContainerContext = null!;
let explorer: DataExplorer = null!;
test.beforeEach("Create Test Database & Open container settings", async ({ page }) => {
test.beforeAll("Create Test Database", async () => {
context = await createTestSQLContainer();
});
test.beforeEach("Open container settings", async ({ page }) => {
explorer = await DataExplorer.open(page, TestAccount.SQL);
// Click Scale & Settings and open Scale tab
@@ -23,9 +26,9 @@ test.describe("Autoscale and Manual throughput", () => {
await scaleTab.click();
});
test.afterEach("Delete Test Database", async () => {
await context?.dispose();
});
// test.afterEach("Delete Test Database", async () => {
// await context?.dispose();
// });
test("Update autoscale max throughput", async () => {
// By default the created container has manual throughput (Containers created via JS SDK v4.7.0 cannot be created with autoscale throughput)

View File

@@ -6,8 +6,11 @@ test.describe("Settings under Scale & Settings", () => {
let context: TestContainerContext = null!;
let explorer: DataExplorer = null!;
test.beforeEach("Create Test Database & Open container settings", async ({ page }) => {
test.beforeAll("Create Test Database", async () => {
context = await createTestSQLContainer();
});
test.beforeEach("Open container settings", async ({ page }) => {
explorer = await DataExplorer.open(page, TestAccount.SQL);
// Click Scale & Settings and open Scale tab
@@ -16,9 +19,9 @@ test.describe("Settings under Scale & Settings", () => {
await settingsTab.click();
});
test.afterEach("Delete Test Database", async () => {
await context?.dispose();
});
// test.afterEach("Delete Test Database", async () => {
// await context?.dispose();
// });
test("Update TTL to On (no default)", async () => {
const ttlOnNoDefaultRadioButton = explorer.frame.getByRole("radio", { name: "ttl-on-no-default-option" });