mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2024-12-12 15:27:09 +00:00
9926fd97a2
* Changes to publish pane * fixed format errors * fixed failing test * added test explorer changes for mongo accounts * added log for test * fixed lit errors * added secrets to ci.yml file * fixed failing self serve test
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;
|
|
}
|
|
});
|
|
});
|