kui-shell
Version:
This is the monorepo for Kui, the hybrid command-line/GUI electron-based Kubernetes tool
22 lines (21 loc) • 1.44 kB
TypeScript
/// <reference types="webdriverio" />
import { Application } from 'spectron';
import * as Common from './common';
export interface AppAndCount {
app: Application;
count: number;
}
export declare const expectSubset: (struct1: object, failFast?: boolean) => (str: string) => boolean;
export declare const expectStruct: (struct1: object, noParse?: boolean, failFast?: boolean) => (str: string) => boolean;
export declare const expectYAML: (struct1: object, subset?: boolean, failFast?: boolean) => (str: string) => boolean;
export declare const expectYAMLSubset: (struct1: object, failFast?: boolean) => (str: string) => boolean;
export declare const expectArray: (expected: string[], failFast?: boolean, subset?: boolean) => (actual: string | string[]) => boolean;
export declare const getValueFromMonaco: (app: Application, prefix?: string) => Promise<any>;
export declare const waitForXtermInput: (app: Application, N: number) => (WebdriverIO.Client<boolean> & false) | (WebdriverIO.Client<boolean> & true);
export declare const expectText: (app: Application, expectedText: string) => (selector: string) => Promise<Application>;
export declare function expectSuggestionsFor(this: Common.ISuite, cmd: string, expectedAvailable: string[], { click, expectedBreadcrumb, sidecar: expectedIcon, expectedString }?: {
click?: number;
expectedBreadcrumb?: string;
sidecar?: string;
expectedString?: string;
}): Promise<any>;