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(); await PartitionKeyTab.click();
}); });
test.afterAll("Delete Test Database", async () => { // test.afterAll("Delete Test Database", async () => {
await context?.dispose(); // await context?.dispose();
}); // });
test("Change partition key path", async () => { test("Change partition key path", async () => {
await expect(explorer.frame.getByText("/partitionKey")).toBeVisible(); await expect(explorer.frame.getByText("/partitionKey")).toBeVisible();

View File

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