* Auto completre fix * Toast fixes * Autocomplete js fix * datatree mutation spec update * Datatree -added running api * rmeoved unused ref * Deletion time added * Community issues spec fix * AssertImportToast() update * QueryAbort case fix * Signature fix * update * UUID flaky fix * Pomises spec + toasts updates * Toasts updates * ErrorReporting spec fix * Scrolling mockdb fix * Bug tests name change for easy identification * bug spec file name update * JSfunc fix * Community issues table load time increase * AssertContains() reduced wiat time * AssertContains() update * timeout added to mysql crud * AssertContains revert * AllInputWidget trial fix * wait until table load ReadTableRowColumnData() * fix * testTimeout added * ReadTableRowColumnData() revert * path fix * WaitUntilTableLoad() revert * COmmunity issues row select fix * Faker added * wait time add for multiselect * Mulipart fix * Community issues spec fix * AllInput spec update * timeout 1 to 3 * update * update * EnterJSContext from JSEditor to PropPane ts * update * Removed unwanted comments * fix * UUID fix
127 lines
3.9 KiB
TypeScript
127 lines
3.9 KiB
TypeScript
import { AggregateHelper } from "../Pages/AggregateHelper";
|
|
import { JSEditor } from "../Pages/JSEditor";
|
|
import { EntityExplorer } from "../Pages/EntityExplorer";
|
|
import { CommonLocators } from "./CommonLocators";
|
|
import { ApiPage } from "../Pages/ApiPage";
|
|
import { HomePage } from "../Pages/HomePage";
|
|
import { DataSources } from "../Pages/DataSources";
|
|
import { Table } from "../Pages/Table";
|
|
import { TableV2 } from "../Pages/TableV2";
|
|
import { PropertyPane } from "../Pages/PropertyPane";
|
|
import { DeployMode } from "../Pages/DeployModeHelper";
|
|
import { FakerHelper } from "../Pages/FakerHelper";
|
|
|
|
export class ObjectsRegistry {
|
|
private static aggregateHelper__: AggregateHelper;
|
|
static get AggregateHelper(): AggregateHelper {
|
|
if (ObjectsRegistry.aggregateHelper__ === undefined) {
|
|
ObjectsRegistry.aggregateHelper__ = new AggregateHelper();
|
|
}
|
|
return ObjectsRegistry.aggregateHelper__;
|
|
}
|
|
|
|
private static jsEditor__: JSEditor;
|
|
static get JSEditor(): JSEditor {
|
|
if (ObjectsRegistry.jsEditor__ === undefined) {
|
|
ObjectsRegistry.jsEditor__ = new JSEditor();
|
|
}
|
|
return ObjectsRegistry.jsEditor__;
|
|
}
|
|
|
|
private static commonLocators__: CommonLocators;
|
|
static get CommonLocators(): CommonLocators {
|
|
if (ObjectsRegistry.commonLocators__ === undefined) {
|
|
ObjectsRegistry.commonLocators__ = new CommonLocators();
|
|
}
|
|
return ObjectsRegistry.commonLocators__;
|
|
}
|
|
|
|
private static entityExplorer__: EntityExplorer;
|
|
static get EntityExplorer(): EntityExplorer {
|
|
if (ObjectsRegistry.entityExplorer__ === undefined) {
|
|
ObjectsRegistry.entityExplorer__ = new EntityExplorer();
|
|
}
|
|
return ObjectsRegistry.entityExplorer__;
|
|
}
|
|
|
|
private static apiPage__: ApiPage;
|
|
static get ApiPage(): ApiPage {
|
|
if (ObjectsRegistry.apiPage__ === undefined) {
|
|
ObjectsRegistry.apiPage__ = new ApiPage();
|
|
}
|
|
return ObjectsRegistry.apiPage__;
|
|
}
|
|
|
|
private static homePage__: HomePage;
|
|
static get HomePage(): HomePage {
|
|
if (ObjectsRegistry.homePage__ === undefined) {
|
|
ObjectsRegistry.homePage__ = new HomePage();
|
|
}
|
|
return ObjectsRegistry.homePage__;
|
|
}
|
|
|
|
private static dataSources__: DataSources;
|
|
static get DataSources(): DataSources {
|
|
if (ObjectsRegistry.dataSources__ === undefined) {
|
|
ObjectsRegistry.dataSources__ = new DataSources();
|
|
}
|
|
return ObjectsRegistry.dataSources__;
|
|
}
|
|
|
|
private static table__: Table;
|
|
static get Table(): Table {
|
|
if (ObjectsRegistry.table__ === undefined) {
|
|
ObjectsRegistry.table__ = new Table();
|
|
}
|
|
return ObjectsRegistry.table__;
|
|
}
|
|
|
|
private static tableV2__: TableV2;
|
|
static get TableV2(): TableV2 {
|
|
if (ObjectsRegistry.tableV2__ === undefined) {
|
|
ObjectsRegistry.tableV2__ = new TableV2();
|
|
}
|
|
return ObjectsRegistry.tableV2__;
|
|
}
|
|
|
|
private static propertyPane__: PropertyPane;
|
|
static get PropertyPane(): PropertyPane {
|
|
if (ObjectsRegistry.propertyPane__ === undefined) {
|
|
ObjectsRegistry.propertyPane__ = new PropertyPane();
|
|
}
|
|
return ObjectsRegistry.propertyPane__;
|
|
}
|
|
|
|
private static deployMode__: DeployMode;
|
|
static get DeployMode(): DeployMode {
|
|
if (ObjectsRegistry.deployMode__ === undefined) {
|
|
ObjectsRegistry.deployMode__ = new DeployMode();
|
|
}
|
|
return ObjectsRegistry.deployMode__;
|
|
}
|
|
|
|
private static fakerHelper__: FakerHelper;
|
|
static get FakerHelper(): FakerHelper {
|
|
if (ObjectsRegistry.fakerHelper__ === undefined) {
|
|
ObjectsRegistry.fakerHelper__ = new FakerHelper();
|
|
}
|
|
return ObjectsRegistry.fakerHelper__;
|
|
}
|
|
}
|
|
|
|
export const initLocalstorageRegistry = () => {
|
|
cy.window().then((window) => {
|
|
window.localStorage.setItem("ShowCommentsButtonToolTip", "");
|
|
window.localStorage.setItem("updateDismissed", "true");
|
|
});
|
|
localStorage.setItem("inDeployedMode", "false");
|
|
};
|
|
|
|
declare namespace Cypress {
|
|
namespace Cypress {
|
|
interface Chainable {
|
|
TypeTab: (shiftKey: Boolean, ctrlKey: boolean) => void;
|
|
}
|
|
}
|
|
}
|