mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-23 11:42:36 +08:00
adding scenario for e2e tesing
This commit is contained in:
1 parent
3f0b158c4c
commit
c1fa6344db
1 file changed
+54
Vendored
+54
@@ -0,0 +1,54 @@
|
||||
|
||||
declare module scenario
|
||||
{
|
||||
interface ISleep
|
||||
{
|
||||
(timeSeconds: number): void;
|
||||
}
|
||||
|
||||
interface IBrowser
|
||||
{
|
||||
(): IBrowser;
|
||||
navigateTo(url: string);
|
||||
navigateTo(url: string, delegate: (url: string) => string);
|
||||
reload();
|
||||
window(): IWindowApi;
|
||||
location(): ILocationApi;
|
||||
}
|
||||
|
||||
interface IWindowApi
|
||||
{
|
||||
href(): void;
|
||||
path(): void;
|
||||
search(): void;
|
||||
hash(): void;
|
||||
}
|
||||
|
||||
interface ILocationApi
|
||||
{
|
||||
url(): void;
|
||||
path(): void;
|
||||
search(): void;
|
||||
hash(): void;
|
||||
}
|
||||
|
||||
|
||||
|
||||
interface IElement
|
||||
{
|
||||
(): IElement;
|
||||
(selector: string): IElement;
|
||||
count(): number;
|
||||
click(): void;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
declare var browser: scenario.IBrowser;
|
||||
declare var element: scenario.IElement;
|
||||
declare var sleep: scenario.ISleep;
|
||||
|
||||
Reference in new issue
Block a user