mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2024-12-12 23:37:27 +00:00
22 lines
656 B
TypeScript
22 lines
656 B
TypeScript
|
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: `Test Failed ${testName}.jpg` });
|
||
|
throw error;
|
||
|
}
|
||
|
});
|
||
|
});
|