tomation 0.0.1 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,17 +4,16 @@ import { UIElement } from './ui-element-builder';
4
4
  import DateUtils from './date-utils';
5
5
  declare const setAutomationLogs: (enabled: boolean) => void;
6
6
  declare enum EVENT_NAMES {
7
- START = "start",
8
- END = "end",
9
- ACTION_UPDATE = "action-update",
10
- SAVE_VALUE = "save-value",
11
- REGISTER_TEST = "register-test",
12
- TEST_STARTED = "test-started",
13
- TEST_PASSED = "test-passed",
14
- TEST_FAILED = "test-failed",
15
- TEST_END = "test-end",
16
- USER_ACCEPT = "user-accept",
17
- USER_REJECT = "user-reject"
7
+ ACTION_UPDATE = "tomation-action-update",
8
+ SAVE_VALUE = "tomation-save-value",
9
+ REGISTER_TEST = "tomation-register-test",
10
+ TEST_STARTED = "tomation-test-started",
11
+ TEST_PASSED = "tomation-test-passed",
12
+ TEST_FAILED = "tomation-test-failed",
13
+ TEST_END = "tomation-test-end",
14
+ TEST_STOP = "tomation-test-stop",
15
+ USER_ACCEPT = "tomation-user-accept",
16
+ USER_REJECT = "tomation-user-reject"
18
17
  }
19
18
  type AutomationEventHandlerType = ((action?: any) => void);
20
19
  declare class EventDispatcher {
@@ -113,4 +112,11 @@ declare class Automation {
113
112
  }
114
113
  declare let AutomationInstance: Automation;
115
114
  declare const Setup: (window: Window, tests?: Array<any>) => Automation;
115
+ interface TomationOptions {
116
+ matches: string | RegExp;
117
+ tests: any[];
118
+ speed?: keyof typeof TestSpeed;
119
+ debug?: boolean;
120
+ }
121
+ export declare function tomation(options: TomationOptions): void;
116
122
  export { Setup, AutomationInstance, Test, RunTest, Task, Click, Assert, Select, Type, TypePassword, ClearValue, PressEscKey, PressDownKey, PressTabKey, UploadFile, SaveValue, Wait, Pause, ManualTask, ReloadPage, DateUtils, AutomationEvents, EVENT_NAMES, TestSpeed, ACTION_STATUS, setAutomationLogs, };