testplane 8.13.0 → 8.14.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.
package/README.md CHANGED
@@ -52,7 +52,7 @@ Testplane (ex-Hermione) is a battle-hardened framework for testing web apps at a
52
52
 
53
53
  const description = await browser.$("p");
54
54
 
55
- expect(description).toHaveTextContaining("for use in illustrative examples in documents");
55
+ await expect(description).toHaveTextContaining("for use in illustrative examples in documents");
56
56
  });
57
57
  });
58
58
  ```
@@ -66,7 +66,7 @@ Testplane (ex-Hermione) is a battle-hardened framework for testing web apps at a
66
66
  4. Try running the test and watch it pass. Now, let's replace description text check with a visual assertion. Use the `assertView` command to carry out visual checks:
67
67
 
68
68
  ```diff
69
- - expect(description).toHaveTextContaining("for use in illustrative examples in documents");
69
+ - await expect(description).toHaveTextContaining("for use in illustrative examples in documents");
70
70
  + await description.assertView("description"); // "description" is just a name of the assertion
71
71
  ```
72
72
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testplane",
3
- "version": "8.13.0",
3
+ "version": "8.14.0",
4
4
  "description": "Tests framework based on mocha and wdio",
5
5
  "main": "build/src/index.js",
6
6
  "files": [
@@ -5,7 +5,7 @@ import "expect-webdriverio";
5
5
  import { GlobalHelper } from "./types";
6
6
  export { Testplane as default } from "./testplane";
7
7
  export { Key } from "webdriverio";
8
- export type { WdioBrowser, TestResult, Test, Suite, TestError, AssertViewOpts, HermioneCtx, GlobalHelper, TestplaneCtx, } from "./types";
8
+ export type { WdioBrowser, TestResult, Test, Suite, TestError, AssertViewOpts, HermioneCtx, GlobalHelper, TestplaneCtx, TestFunctionCtx, } from "./types";
9
9
  export type { Config } from "./config";
10
10
  export type { ConfigInput } from "./config/types";
11
11
  export type { TestCollection } from "./test-collection";
@@ -17,6 +17,7 @@ import { CoordBounds, LooksSameOptions } from "looks-same";
17
17
  export type { Browser as WdioBrowser } from "webdriverio";
18
18
  export type { Test } from "../test-reader/test-object/test";
19
19
  export type { Suite } from "../test-reader/test-object/suite";
20
+ export type { TestFunctionCtx } from "../test-reader/test-object/types";
20
21
  export type { AssertViewOpts } from "../browser/commands/types";
21
22
  export interface RootSuite extends Suite {
22
23
  root: true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testplane",
3
- "version": "8.13.0",
3
+ "version": "8.14.0",
4
4
  "description": "Tests framework based on mocha and wdio",
5
5
  "main": "build/src/index.js",
6
6
  "files": [