mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-01-30 15:14:19 +00:00
Fix tests
This commit is contained in:
@@ -83,10 +83,12 @@ test.describe("Database with Shared Throughput", () => {
|
|||||||
return explorer.frame.getByTestId(`${type}-throughput-input`);
|
return explorer.frame.getByTestId(`${type}-throughput-input`);
|
||||||
};
|
};
|
||||||
|
|
||||||
test.afterEach(async () => {
|
// Delete database only if not running in CI
|
||||||
// Clean up: delete the created database
|
if (!process.env.CI) {
|
||||||
await dbContext?.dispose();
|
test.afterEach("Delete Test Database", async () => {
|
||||||
});
|
await dbContext?.dispose();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
test.describe("Manual Throughput Tests", () => {
|
test.describe("Manual Throughput Tests", () => {
|
||||||
test.beforeEach(async ({ page }) => {
|
test.beforeEach(async ({ page }) => {
|
||||||
@@ -119,7 +121,8 @@ test.describe("Database with Shared Throughput", () => {
|
|||||||
await explorer.waitForNode(dbContext.database.id);
|
await explorer.waitForNode(dbContext.database.id);
|
||||||
|
|
||||||
// Add a container to the shared database via UI
|
// Add a container to the shared database via UI
|
||||||
await explorer.frame.getByRole("button", { name: "New Container" }).click();
|
const newContainerButton = await explorer.globalCommandButton("New Container");
|
||||||
|
await newContainerButton.click();
|
||||||
|
|
||||||
await explorer.whilePanelOpen(
|
await explorer.whilePanelOpen(
|
||||||
"New Container",
|
"New Container",
|
||||||
|
|||||||
Reference in New Issue
Block a user