mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-21 18:01:39 +00:00
Fix Test Database Cleanup Script (#497)
This commit is contained in:
@@ -1,21 +0,0 @@
|
||||
import { Frame } from "puppeteer";
|
||||
import { ApiKind } from "../../src/Contracts/DataModels";
|
||||
import { getTestExplorerFrame } from "../testExplorer/TestExplorerUtils";
|
||||
|
||||
jest.setTimeout(300000);
|
||||
|
||||
let frame: Frame;
|
||||
|
||||
describe("Mongo", () => {
|
||||
it("Account opens", async () => {
|
||||
try {
|
||||
frame = await getTestExplorerFrame(ApiKind.MongoDB);
|
||||
await frame.waitForSelector(".accordion");
|
||||
} catch (error) {
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
const testName = (expect as any).getState().currentTestName;
|
||||
await page.screenshot({ path: `failed-${testName}.jpg` });
|
||||
throw error;
|
||||
}
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user