/// <reference types="cypress" />
declare namespace Cypress {
interface CustomWindow extends Window { }
interface Chainable {
/**
* Window object with additional properties used in testing; exposes
* services!
*/
window(options?: Partial<Loggable & Timeoutable>): Chainable<CustomWindow>;
getBySel(dataTestAttribute: string, args?: any): Chainable<JQuery<HTMLElement>>;
getBySelLike(dataTestPrefixAttribute: string, args?: any): Chainable<JQuery<HTMLElement>>;
/**
* Logs in via Auth0 login page
*/
loginToAuth0(username: string, password: string): Chainable<any>;
/**
* In addition to doing loginToAuth0 this command also
* fires off the standard Posthog event and
* makes sure you reached the new UI successfully
*/
basicLogin(): void;
/**
* Sends Posthog Event for User Identification/Test Identification in Posthog
*/
sendPosthogEvent(event: string, eventKey: string, eventData: string): Chainable<any>;
dragTo(sourceElement: string, targetElement: string, offsetX? :number, offsetY?: number): void;
createComponent(componentName?: string, closeComponent?: boolean): void;
createChangeSet(changeSetName: string, immediatelyAbandon?: boolean): void;
abandonCurrentChangeSet(): void;
appModelPageLoaded(): void;
clickButtonByIdIfExists(id: string): void;
}
}