mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-04-23 01:53:46 +01:00
* added recursion and inition decorators * working version * added todo comment and removed console.log * Added Recursive add * removed type requirement * proper resolution of promises * added custom element and base class * Made selfServe standalone page * Added custom renderer as async type * Added overall defaults * added inital open from data explorer * removed landingpage * added feature for self serve type * renamed sqlx->example and added invalid type * Added comments for Example * removed unnecessary changes * Resolved PR comments Added tests Moved onSubmt and initialize inside base class Moved testExplorer to separate folder made fields of SelfServe Class non static * fixed lint errors * fixed compilation errors * Removed reactbinding changes * renamed dropdown -> choice * Added SelfServeComponent * Addressed PR comments * merged master * added selfservetype.none for emulator and hosted experience * fixed formatting errors * Removed "any" type * undid package.json changes
28 lines
1.1 KiB
TypeScript
28 lines
1.1 KiB
TypeScript
import { Frame } from "puppeteer";
|
|
import { TestExplorerParams } from "../testExplorer/TestExplorerParams";
|
|
import { getTestExplorerFrame } from "../testExplorer/TestExplorerUtils";
|
|
import { SelfServeType } from "../../src/SelfServe/SelfServeUtils";
|
|
|
|
jest.setTimeout(300000);
|
|
|
|
let frame: Frame;
|
|
describe("Self Serve", () => {
|
|
it("Launch Self Serve Example", async () => {
|
|
try {
|
|
frame = await getTestExplorerFrame(
|
|
new Map<string, string>([[TestExplorerParams.selfServeType, SelfServeType.example]])
|
|
);
|
|
await frame.waitForSelector("#regions-dropown-input");
|
|
await frame.waitForSelector("#enableLogging-radioSwitch-input");
|
|
await frame.waitForSelector("#accountName-textBox-input");
|
|
await frame.waitForSelector("#dbThroughput-slider-input");
|
|
await frame.waitForSelector("#collectionThroughput-spinner-input");
|
|
} 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;
|
|
}
|
|
});
|
|
});
|