@nova-ui/bits
Version:
SolarWinds Nova Framework
29 lines (28 loc) • 1.14 kB
TypeScript
import { ElementFinder } from "protractor";
import { Atom } from "../../atom";
import { ButtonAtom } from "../../components/button/button.atom";
export declare class ToastAtom extends Atom {
static CSS_CLASS: string;
/** default tiomeout for toast */
static toastTimeout: number;
/** time for 'fade out' animation */
static animationTimeout: number;
private root;
container: ElementFinder;
private content;
dismiss: ButtonAtom;
getTitle: () => Promise<string>;
getBody: () => Promise<string>;
getBodyHtml: () => Promise<string>;
isSuccessType: () => Promise<boolean>;
isWarningType: () => Promise<boolean>;
isInfoType: () => Promise<boolean>;
isErrorType: () => Promise<boolean>;
/** Wait for countdown timout and extended timeout only. No need to wait for fade out animation. Angular will take care of it. */
waitUntilNotDisplayed: (timeOut?: number) => Promise<void>;
getToastsContainerPositioning: (positionClass: string) => Promise<boolean>;
click: () => Promise<void>;
unhover: () => Promise<void>;
private getBodyElement;
private isToastType;
}