mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-19 00:41:31 +00:00
Test explorer changes (#420)
* 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
This commit is contained in:
committed by
GitHub
parent
2a7546e0de
commit
9926fd97a2
21
test/mongo/openMongoAccount.spec.ts
Normal file
21
test/mongo/openMongoAccount.spec.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
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;
|
||||
}
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user