testplane 8.40.8 → 8.40.9

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,6 +1,6 @@
1
1
  {
2
2
  "name": "testplane",
3
- "version": "8.40.8",
3
+ "version": "8.40.9",
4
4
  "description": "Tests framework based on mocha and wdio",
5
5
  "main": "build/src/index.js",
6
6
  "files": [
@@ -2,6 +2,7 @@
2
2
  /// <reference types="expect-webdriverio/types/expect-webdriverio" />
3
3
  import "./browser/types";
4
4
  import "expect-webdriverio";
5
+ import "./vendors/expect-webdriverio/matchers-overrides";
5
6
  import { GlobalHelper } from "./types";
6
7
  export { run as runCli } from "./cli";
7
8
  export { Testplane as default } from "./testplane";
@@ -34,6 +34,8 @@ exports.TimeTravelMode = exports.unstable = exports.Key = exports.default = expo
34
34
  require("./browser/types");
35
35
  // Declares global expect function
36
36
  require("expect-webdriverio");
37
+ // Overrides matchers return type
38
+ require("./vendors/expect-webdriverio/matchers-overrides");
37
39
  var cli_1 = require("./cli");
38
40
  Object.defineProperty(exports, "runCli", { enumerable: true, get: function () { return cli_1.run; } });
39
41
  var testplane_1 = require("./testplane");
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBAAwB;AACxB,qEAAqE;AACrE,+CAA+C;AAC/C,uCAAuC;AACvC,2BAAyB;AACzB,kCAAkC;AAClC,8BAA4B;AAG5B,6BAAsC;AAA7B,6FAAA,GAAG,OAAU;AACtB,yCAAmD;AAA1C,oGAAA,SAAS,OAAW;AAC7B,sDAA6C;AAApC,kGAAA,GAAG,OAAA;AACZ,yCAAuB;AAEvB,uDAAuC;AAoBvC,mCAA0C;AAAjC,wGAAA,cAAc,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBAAwB;AACxB,qEAAqE;AACrE,+CAA+C;AAC/C,uCAAuC;AACvC,2BAAyB;AACzB,kCAAkC;AAClC,8BAA4B;AAC5B,iCAAiC;AACjC,2DAAyD;AAGzD,6BAAsC;AAA7B,6FAAA,GAAG,OAAU;AACtB,yCAAmD;AAA1C,oGAAA,SAAS,OAAW;AAC7B,sDAA6C;AAApC,kGAAA,GAAG,OAAA;AACZ,yCAAuB;AAEvB,uDAAuC;AAoBvC,mCAA0C;AAAjC,wGAAA,cAAc,OAAA"}
@@ -0,0 +1,49 @@
1
+ /// <reference types="expect-webdriverio/types/expect-webdriverio" />
2
+ export {};
3
+ declare global {
4
+ namespace ExpectWebdriverIO {
5
+ interface Matchers<R, T> {
6
+ toBeDisplayed(options?: ExpectWebdriverIO.CommandOptions): Promise<R>;
7
+ toExist(options?: ExpectWebdriverIO.CommandOptions): Promise<R>;
8
+ toBePresent(options?: ExpectWebdriverIO.CommandOptions): Promise<R>;
9
+ toBeExisting(options?: ExpectWebdriverIO.CommandOptions): Promise<R>;
10
+ toHaveAttribute(attribute: string, value?: string | RegExp, options?: ExpectWebdriverIO.StringOptions): Promise<R>;
11
+ toHaveAttr(attribute: string, value?: string | RegExp, options?: ExpectWebdriverIO.StringOptions): Promise<R>;
12
+ toHaveAttributeContaining(attribute: string, contains: string | RegExp, options?: ExpectWebdriverIO.StringOptions): Promise<R>;
13
+ toHaveAttrContaining(attribute: string, contains: string | RegExp, options?: ExpectWebdriverIO.StringOptions): Promise<R>;
14
+ toHaveClass(className: string | RegExp, options?: ExpectWebdriverIO.StringOptions): Promise<R>;
15
+ toHaveElementClass(className: string | RegExp, options?: ExpectWebdriverIO.StringOptions): Promise<R>;
16
+ toHaveClassContaining(className: string | RegExp, options?: ExpectWebdriverIO.StringOptions): Promise<R>;
17
+ toHaveElementClassContaining(className: string | RegExp, options?: ExpectWebdriverIO.StringOptions): Promise<R>;
18
+ toHaveElementProperty(property: string | RegExp, value?: unknown, options?: ExpectWebdriverIO.StringOptions): Promise<R>;
19
+ toHaveValue(value: string | RegExp, options?: ExpectWebdriverIO.StringOptions): Promise<R>;
20
+ toHaveValueContaining(value: string | RegExp, options?: ExpectWebdriverIO.StringOptions): Promise<R>;
21
+ toBeClickable(options?: ExpectWebdriverIO.StringOptions): Promise<R>;
22
+ toBeDisabled(options?: ExpectWebdriverIO.StringOptions): Promise<R>;
23
+ toBeDisplayedInViewport(options?: ExpectWebdriverIO.StringOptions): Promise<R>;
24
+ toBeEnabled(options?: ExpectWebdriverIO.StringOptions): Promise<R>;
25
+ toBeFocused(options?: ExpectWebdriverIO.StringOptions): Promise<R>;
26
+ toBeSelected(options?: ExpectWebdriverIO.StringOptions): Promise<R>;
27
+ toBeChecked(options?: ExpectWebdriverIO.StringOptions): Promise<R>;
28
+ toHaveChildren(size?: number | ExpectWebdriverIO.NumberOptions, options?: ExpectWebdriverIO.NumberOptions): Promise<R>;
29
+ toHaveHref(href: string | RegExp, options?: ExpectWebdriverIO.StringOptions): Promise<R>;
30
+ toHaveLink(href: string | RegExp, options?: ExpectWebdriverIO.StringOptions): Promise<R>;
31
+ toHaveHrefContaining(href: string | RegExp, options?: ExpectWebdriverIO.StringOptions): Promise<R>;
32
+ toHaveLinkContaining(href: string | RegExp, options?: ExpectWebdriverIO.StringOptions): Promise<R>;
33
+ toHaveId(id: string | RegExp, options?: ExpectWebdriverIO.StringOptions): Promise<R>;
34
+ toHaveText(text: string | RegExp | Array<string | RegExp>, options?: ExpectWebdriverIO.StringOptions): Promise<R>;
35
+ toHaveTextContaining(text: string | RegExp | Array<string | RegExp>, options?: ExpectWebdriverIO.StringOptions): Promise<R>;
36
+ toHaveStyle(style: {
37
+ [key: string]: string;
38
+ }, options?: ExpectWebdriverIO.StringOptions): Promise<R>;
39
+ toHaveUrl(url: string | RegExp, options?: ExpectWebdriverIO.StringOptions): Promise<R>;
40
+ toHaveUrlContaining(url: string | RegExp, options?: ExpectWebdriverIO.StringOptions): Promise<R>;
41
+ toHaveTitle(title: string | RegExp, options?: ExpectWebdriverIO.StringOptions): Promise<R>;
42
+ toHaveTitleContaining(title: string | RegExp, options?: ExpectWebdriverIO.StringOptions): Promise<R>;
43
+ toBeElementsArrayOfSize(size: number | ExpectWebdriverIO.NumberOptions, options?: ExpectWebdriverIO.NumberOptions): Promise<R>;
44
+ toBeRequested(options?: ExpectWebdriverIO.CommandOptions): Promise<R>;
45
+ toBeRequestedTimes(times: number | ExpectWebdriverIO.NumberOptions, options?: ExpectWebdriverIO.NumberOptions): Promise<R>;
46
+ toBeRequestedWith(requestedWith: ExpectWebdriverIO.RequestedWith, options?: ExpectWebdriverIO.CommandOptions): Promise<R>;
47
+ }
48
+ }
49
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=matchers-overrides.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"matchers-overrides.js","sourceRoot":"","sources":["../../../../src/vendors/expect-webdriverio/matchers-overrides.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testplane",
3
- "version": "8.40.8",
3
+ "version": "8.40.9",
4
4
  "description": "Tests framework based on mocha and wdio",
5
5
  "main": "build/src/index.js",
6
6
  "files": [