mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
00b88fd683
Summary: Column and widget descriptions now support links in text. Test Plan: Updated Reviewers: georgegevoian Reviewed By: georgegevoian Differential Revision: https://phab.getgrist.com/D3981
37 lines
1.3 KiB
TypeScript
37 lines
1.3 KiB
TypeScript
declare module "test/nbrowser/gristUtil-nbrowser";
|
|
|
|
// Adds missing type declaration to chai
|
|
declare namespace Chai {
|
|
interface AssertStatic {
|
|
notIncludeMembers<T>(superset: T[], subset: T[], message?: string): void;
|
|
}
|
|
}
|
|
|
|
declare module "selenium-webdriver" {
|
|
interface WebDriver {
|
|
withActions(cb: (actions: WebActions) => void): Promise<void>;
|
|
}
|
|
|
|
// This is not a complete definition of available methods, but only those that we use for now.
|
|
// TODO: find documentation for this interface or update selenium-webdriver.
|
|
interface WebActions {
|
|
contextClick(el?: WebElement): WebActions;
|
|
click(el?: WebElement): WebActions;
|
|
press(): WebActions;
|
|
move(params: {origin?: WebElement|string, x?: number, y?: number}): WebActions;
|
|
keyDown(key: string): WebActions;
|
|
keyUp(key: string): WebActions;
|
|
dragAndDrop(element: WebElement, target: WebElement): WebActions;
|
|
release(): WebActions;
|
|
doubleClick(element: WebElement): WebActions;
|
|
pause(ms: number): WebActions;
|
|
}
|
|
}
|
|
|
|
import "mocha-webdriver";
|
|
declare module "mocha-webdriver" {
|
|
// It looks like this hack makes tsc see our definition as primary, adding
|
|
// the typed version override (of the withActions method) as the default one.
|
|
export declare let driver: import("selenium-webdriver").WebDriver;
|
|
}
|