delete test database after every test and reload collections before opening scale and settings

This commit is contained in:
Asier Isayas
2026-01-02 13:23:25 -05:00
parent b94e9a1eaa
commit 2d0e30d58d
3 changed files with 27 additions and 22 deletions

View File

@@ -26,11 +26,15 @@ test.describe("Autoscale throughput", () => {
await switchManualToAutoscaleThroughput();
});
if (!process.env.CI) {
test.afterAll("Delete Test Database", async () => {
await context?.dispose();
});
}
// if (!process.env.CI) {
// test.afterAll("Delete Test Database", async () => {
// await context?.dispose();
// });
// }
test.afterAll("Delete Test Database", async () => {
await context?.dispose();
});
test("Update autoscale max throughput", async () => {
// Update autoscale max throughput
@@ -80,7 +84,7 @@ test.describe("Autoscale throughput", () => {
await expect(explorer.getConsoleHeaderStatus()).toContainText(
`Successfully updated offer for collection ${context.container.id}`,
{
timeout: ONE_MINUTE_MS,
timeout: 2 * ONE_MINUTE_MS,
},
);
};

View File

@@ -26,14 +26,15 @@ test.describe.serial("Settings under Scale & Settings", () => {
// await settingsTab.click();
// });
// test.afterEach("Delete Test Database", async () => {
// await context?.dispose();
// });
if (!process.env.CI) {
test.afterAll("Delete Test Database", async () => {
await context?.dispose();
});
}
// if (!process.env.CI) {
// test.afterAll("Delete Test Database", async () => {
// await context?.dispose();
// });
// }
test.afterAll("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" });