testplane 8.23.0 → 8.23.1
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.
package/build/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import type { EventEmitter } from "events";
|
|
3
3
|
import type { AssertViewCommand, AssertViewElementCommand } from "./commands/types";
|
|
4
4
|
import type { BrowserConfig } from "./../config/browser-config";
|
|
5
|
-
import type { ExecutionThreadToolCtx } from "../types";
|
|
5
|
+
import type { ExecutionThreadCtx, ExecutionThreadToolCtx } from "../types";
|
|
6
6
|
import { MoveCursorToCommand } from "./commands/moveCursorTo";
|
|
7
7
|
import { OpenAndWaitCommand } from "./commands/openAndWait";
|
|
8
8
|
import Callstack from "./history/callstack";
|
|
@@ -102,10 +102,7 @@ declare global {
|
|
|
102
102
|
* @deprecated Use `testplaneCtx` instead
|
|
103
103
|
*/
|
|
104
104
|
hermioneCtx: ExecutionThreadToolCtx;
|
|
105
|
-
ctx:
|
|
106
|
-
browser: WebdriverIO.Browser;
|
|
107
|
-
currentTest: Test;
|
|
108
|
-
};
|
|
105
|
+
ctx: ExecutionThreadCtx;
|
|
109
106
|
};
|
|
110
107
|
openAndWait: OpenAndWaitCommand;
|
|
111
108
|
switchToRepl: (this: WebdriverIO.Browser, ctx?: Record<string, unknown>) => Promise<void>;
|
package/build/src/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { GlobalHelper } from "./types";
|
|
|
6
6
|
export { Testplane as default } from "./testplane";
|
|
7
7
|
export { Key } from "webdriverio";
|
|
8
8
|
export * from "./mock";
|
|
9
|
-
export type { WdioBrowser, TestResult, Test, Suite, TestError, HermioneCtx, GlobalHelper, TestplaneCtx, TestFunction, TestFunctionCtx, } from "./types";
|
|
9
|
+
export type { WdioBrowser, TestResult, Test, Suite, TestError, HermioneCtx, GlobalHelper, TestplaneCtx, TestFunction, TestFunctionCtx, ExecutionThreadCtx, } from "./types";
|
|
10
10
|
export type { Config } from "./config";
|
|
11
11
|
export type { ConfigInput, AssertViewOpts } from "./config/types";
|
|
12
12
|
export type { TestCollection, FormatterTreeSuite, FormatterTreeTest, FormatterTreeMainRunnable, FormatterListTest, } from "./test-collection";
|
|
@@ -117,6 +117,10 @@ export interface ExecutionThreadToolCtx {
|
|
|
117
117
|
get: () => Array<AssertViewResult>;
|
|
118
118
|
};
|
|
119
119
|
}
|
|
120
|
+
export interface ExecutionThreadCtx {
|
|
121
|
+
browser: WebdriverIO.Browser;
|
|
122
|
+
currentTest: Test;
|
|
123
|
+
}
|
|
120
124
|
export interface TestResult extends Test {
|
|
121
125
|
assertViewResults: Array<AssertViewResult>;
|
|
122
126
|
description?: string;
|