@applitools/eyes-webdriverio 5.39.0 → 5.40.0

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.
@@ -1,34 +1,20 @@
1
- import type {
2
- Element,
3
- Selector,
4
- Eyes,
5
- ConfigurationPlain,
6
- Configuration,
7
- CheckSettingsPlain,
8
- CheckSettings,
9
- TestResults,
10
- TestResultsSummary,
11
- } from './index'
12
-
13
- declare global {
14
- namespace WebdriverIO {
15
- interface ServiceOption extends ConfigurationPlain {
16
- useVisualGrid?: boolean
17
- concurrency?: number
18
- eyes?: ServiceOption
19
- }
20
- interface Browser {
21
- getEyes(): Eyes
22
- eyesCheck(checkSettings?: CheckSettingsPlain): Promise<void>
23
- eyesCheck(title: string, checkSettings: CheckSettings): Promise<void>
24
- eyesSetScrollRootElement(element: Element | Selector): void
25
- eyesAddProperty(key: string, value: string): void
26
- eyesClearProperties(): void
27
- eyesGetTestResults(): Promise<TestResults>
28
- eyesSetConfiguration(configuration: ConfigurationPlain): void
29
- eyesGetConfiguration(): Configuration
30
- eyesGetIsOpen(): boolean
31
- eyesGetAllTestResults(throwErr: boolean): Promise<TestResultsSummary>
32
- }
33
- }
1
+ import { ConfigurationPlain } from './api';
2
+ interface EyesServiceOptions extends ConfigurationPlain {
3
+ useVisualGrid?: boolean;
4
+ concurrency?: number;
5
+ eyes?: EyesServiceOptions;
34
6
  }
7
+ declare class EyesService {
8
+ private _eyes;
9
+ private _appName?;
10
+ private _testResults?;
11
+ constructor({ useVisualGrid, concurrency, eyes, ...config }: EyesServiceOptions);
12
+ private _eyesOpen;
13
+ private _eyesClose;
14
+ beforeSession(config: Record<string, unknown>): void;
15
+ before(): void;
16
+ beforeTest(test: any): void;
17
+ afterTest(): Promise<void>;
18
+ after(): Promise<void>;
19
+ }
20
+ export = EyesService;
package/types/v8.d.ts ADDED
@@ -0,0 +1 @@
1
+ /// <reference types="@applitools/spec-driver-webdriverio/v8"/>