codeceptjs 3.7.0-beta.14 → 3.7.0-beta.15

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/lib/step/base.js CHANGED
@@ -25,8 +25,7 @@ class Step {
25
25
  this.opts = {}
26
26
  /** @member {string} */
27
27
  this.actor = 'I' // I = actor
28
- /** @member {string} */
29
- this.helperMethod = name // helper method
28
+
30
29
  /** @member {string} */
31
30
  this.status = 'pending'
32
31
  /** @member {string} */
@@ -38,6 +37,13 @@ class Step {
38
37
  /** @member {string} */
39
38
  this.stack = ''
40
39
 
40
+ // These are part of HelperStep class
41
+ // but left here for types compatibility
42
+ /** @member {any} */
43
+ this.helper = null
44
+ /** @member {string} */
45
+ this.helperMethod = name
46
+
41
47
  this.startTime = 0
42
48
  this.endTime = 0
43
49
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codeceptjs",
3
- "version": "3.7.0-beta.14",
3
+ "version": "3.7.0-beta.15",
4
4
  "description": "Supercharged End 2 End Testing Framework for NodeJS",
5
5
  "keywords": [
6
6
  "acceptance",
@@ -31,6 +31,7 @@
31
31
  "main": "lib/index.js",
32
32
  "exports": {
33
33
  ".": "./lib/index.js",
34
+ "./lib/*": "./lib/*.js",
34
35
  "./els": "./lib/els.js",
35
36
  "./effects": "./lib/effects.js",
36
37
  "./steps": "./lib/steps.js"
@@ -77,8 +78,8 @@
77
78
  "@codeceptjs/configure": "1.0.2",
78
79
  "@codeceptjs/helper": "2.0.4",
79
80
  "@cucumber/cucumber-expressions": "18",
80
- "@cucumber/gherkin": "30",
81
- "@cucumber/messages": "27.1.0",
81
+ "@cucumber/gherkin": "31",
82
+ "@cucumber/messages": "27.2.0",
82
83
  "@xmldom/xmldom": "0.9.7",
83
84
  "acorn": "8.14.0",
84
85
  "arrify": "3.0.0",
@@ -129,16 +130,16 @@
129
130
  "@pollyjs/core": "5.1.0",
130
131
  "@types/chai": "4.3.19",
131
132
  "@types/inquirer": "9.0.7",
132
- "@types/node": "22.12.0",
133
- "@wdio/sauce-service": "9.7.1",
133
+ "@types/node": "22.13.0",
134
+ "@wdio/sauce-service": "9.7.2",
134
135
  "@wdio/selenium-standalone-service": "8.15.0",
135
- "@wdio/utils": "9.6.4",
136
+ "@wdio/utils": "9.7.2",
136
137
  "@xmldom/xmldom": "0.9.7",
137
138
  "chai": "^4.0.0",
138
139
  "chai-as-promised": "7.1.2",
139
140
  "chai-subset": "1.6.0",
140
141
  "documentation": "14.0.3",
141
- "electron": "34.0.1",
142
+ "electron": "34.0.2",
142
143
  "eslint": "^9.19.0",
143
144
  "eslint-plugin-import": "2.31.0",
144
145
  "eslint-plugin-mocha": "10.5.0",
@@ -152,13 +153,13 @@
152
153
  "jsdoc": "^3.6.11",
153
154
  "jsdoc-typeof-plugin": "1.0.0",
154
155
  "json-server": "0.17.4",
155
- "playwright": "1.50.0",
156
+ "playwright": "1.50.1",
156
157
  "prettier": "^3.3.2",
157
158
  "puppeteer": "24.1.1",
158
159
  "qrcode-terminal": "0.12.0",
159
160
  "rosie": "2.1.1",
160
161
  "runok": "0.9.3",
161
- "semver": "7.6.3",
162
+ "semver": "7.7.0",
162
163
  "sinon": "19.0.2",
163
164
  "sinon-chai": "3.7.0",
164
165
  "testcafe": "3.7.1",
@@ -169,8 +170,8 @@
169
170
  "typedoc": "0.27.6",
170
171
  "typedoc-plugin-markdown": "4.4.1",
171
172
  "typescript": "5.7.3",
172
- "wdio-docker-service": "1.5.0",
173
- "webdriverio": "^9.7.1",
173
+ "wdio-docker-service": "3.2.1",
174
+ "webdriverio": "9.7.2",
174
175
  "xml2js": "0.6.2",
175
176
  "xpath": "0.0.34"
176
177
  },
@@ -1759,10 +1759,6 @@ declare namespace CodeceptJS {
1759
1759
  * @property [host = "0.0.0.0"] - Mock server host
1760
1760
  * @property [httpsOpts] - key & cert values are the paths to .key and .crt files
1761
1761
  */
1762
- // @ts-ignore
1763
- // @ts-ignore
1764
- // @ts-ignore
1765
- // @ts-ignore
1766
1762
  type MockServerConfig = {
1767
1763
  port?: number;
1768
1764
  host?: string;
@@ -1887,10 +1883,6 @@ declare namespace CodeceptJS {
1887
1883
  *
1888
1884
  * ## Methods
1889
1885
  */
1890
- // @ts-ignore
1891
- // @ts-ignore
1892
- // @ts-ignore
1893
- // @ts-ignore
1894
1886
  class MockServer {
1895
1887
  /**
1896
1888
  * Start the mock server
@@ -2924,10 +2916,6 @@ declare namespace CodeceptJS {
2924
2916
  * @property [recordHar] - record HAR and will be saved to `output/har`. See more of [HAR options](https://playwright.dev/docs/api/class-browser#browser-new-context-option-record-har).
2925
2917
  * @property [testIdAttribute = data-testid] - locate elements based on the testIdAttribute. See more of [locate by test id](https://playwright.dev/docs/locators#locate-by-test-id).
2926
2918
  */
2927
- // @ts-ignore
2928
- // @ts-ignore
2929
- // @ts-ignore
2930
- // @ts-ignore
2931
2919
  type PlaywrightConfig = {
2932
2920
  url?: string;
2933
2921
  browser?: 'chromium' | 'firefox' | 'webkit' | 'electron';
@@ -6304,10 +6292,6 @@ declare namespace CodeceptJS {
6304
6292
  * @property [chrome] - pass additional [Puppeteer run options](https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#puppeteerlaunchoptions).
6305
6293
  * @property [highlightElement] - highlight the interacting elements. Default: false. Note: only activate under verbose mode (--verbose).
6306
6294
  */
6307
- // @ts-ignore
6308
- // @ts-ignore
6309
- // @ts-ignore
6310
- // @ts-ignore
6311
6295
  type PuppeteerConfig = {
6312
6296
  url: string;
6313
6297
  basicAuth?: any;
@@ -8114,10 +8098,6 @@ declare namespace CodeceptJS {
8114
8098
  * @property [onResponse] - an async function which can update response object.
8115
8099
  * @property [maxUploadFileSize] - set the max content file size in MB when performing api calls.
8116
8100
  */
8117
- // @ts-ignore
8118
- // @ts-ignore
8119
- // @ts-ignore
8120
- // @ts-ignore
8121
8101
  type RESTConfig = {
8122
8102
  endpoint?: string;
8123
8103
  prettyPrintJson?: boolean;
@@ -9262,10 +9242,6 @@ declare namespace CodeceptJS {
9262
9242
  * @property [highlightElement] - highlight the interacting elements. Default: false. Note: only activate under verbose mode (--verbose).
9263
9243
  * @property [logLevel = silent] - level of logging verbosity. Default: silent. Options: trace | debug | info | warn | error | silent. More info: https://webdriver.io/docs/configuration/#loglevel
9264
9244
  */
9265
- // @ts-ignore
9266
- // @ts-ignore
9267
- // @ts-ignore
9268
- // @ts-ignore
9269
9245
  type WebDriverConfig = {
9270
9246
  url: string;
9271
9247
  browser: string;
@@ -1786,10 +1786,6 @@ declare namespace CodeceptJS {
1786
1786
  * @property [host = "0.0.0.0"] - Mock server host
1787
1787
  * @property [httpsOpts] - key & cert values are the paths to .key and .crt files
1788
1788
  */
1789
- // @ts-ignore
1790
- // @ts-ignore
1791
- // @ts-ignore
1792
- // @ts-ignore
1793
1789
  type MockServerConfig = {
1794
1790
  port?: number;
1795
1791
  host?: string;
@@ -1914,10 +1910,6 @@ declare namespace CodeceptJS {
1914
1910
  *
1915
1911
  * ## Methods
1916
1912
  */
1917
- // @ts-ignore
1918
- // @ts-ignore
1919
- // @ts-ignore
1920
- // @ts-ignore
1921
1913
  class MockServer {
1922
1914
  /**
1923
1915
  * Start the mock server
@@ -3017,10 +3009,6 @@ declare namespace CodeceptJS {
3017
3009
  * @property [recordHar] - record HAR and will be saved to `output/har`. See more of [HAR options](https://playwright.dev/docs/api/class-browser#browser-new-context-option-record-har).
3018
3010
  * @property [testIdAttribute = data-testid] - locate elements based on the testIdAttribute. See more of [locate by test id](https://playwright.dev/docs/locators#locate-by-test-id).
3019
3011
  */
3020
- // @ts-ignore
3021
- // @ts-ignore
3022
- // @ts-ignore
3023
- // @ts-ignore
3024
3012
  type PlaywrightConfig = {
3025
3013
  url?: string;
3026
3014
  browser?: 'chromium' | 'firefox' | 'webkit' | 'electron';
@@ -6548,10 +6536,6 @@ declare namespace CodeceptJS {
6548
6536
  * @property [chrome] - pass additional [Puppeteer run options](https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#puppeteerlaunchoptions).
6549
6537
  * @property [highlightElement] - highlight the interacting elements. Default: false. Note: only activate under verbose mode (--verbose).
6550
6538
  */
6551
- // @ts-ignore
6552
- // @ts-ignore
6553
- // @ts-ignore
6554
- // @ts-ignore
6555
6539
  type PuppeteerConfig = {
6556
6540
  url: string;
6557
6541
  basicAuth?: any;
@@ -8494,10 +8478,6 @@ declare namespace CodeceptJS {
8494
8478
  * @property [onResponse] - an async function which can update response object.
8495
8479
  * @property [maxUploadFileSize] - set the max content file size in MB when performing api calls.
8496
8480
  */
8497
- // @ts-ignore
8498
- // @ts-ignore
8499
- // @ts-ignore
8500
- // @ts-ignore
8501
8481
  type RESTConfig = {
8502
8482
  endpoint?: string;
8503
8483
  prettyPrintJson?: boolean;
@@ -9702,10 +9682,6 @@ declare namespace CodeceptJS {
9702
9682
  * @property [highlightElement] - highlight the interacting elements. Default: false. Note: only activate under verbose mode (--verbose).
9703
9683
  * @property [logLevel = silent] - level of logging verbosity. Default: silent. Options: trace | debug | info | warn | error | silent. More info: https://webdriver.io/docs/configuration/#loglevel
9704
9684
  */
9705
- // @ts-ignore
9706
- // @ts-ignore
9707
- // @ts-ignore
9708
- // @ts-ignore
9709
9685
  type WebDriverConfig = {
9710
9686
  url: string;
9711
9687
  browser: string;
@@ -11787,6 +11763,10 @@ declare namespace CodeceptJS {
11787
11763
  * Dependency Injection Container
11788
11764
  */
11789
11765
  class Container {
11766
+ /**
11767
+ * Get the standard acting helpers of CodeceptJS Container
11768
+ */
11769
+ static STANDARD_ACTING_HELPERS: any;
11790
11770
  /**
11791
11771
  * Create container with all required helpers and support objects
11792
11772
  */
@@ -11831,16 +11811,12 @@ declare namespace CodeceptJS {
11831
11811
  }, newPlugins: {
11832
11812
  [key: string]: any;
11833
11813
  }): void;
11834
- static started(fn: (...params: any[]) => any): Promise<void>;
11814
+ static started(fn: ((...params: any[]) => any) | null): Promise<void>;
11835
11815
  /**
11836
11816
  * Share data across worker threads
11837
11817
  * @param options - set {local: true} to not share among workers
11838
11818
  */
11839
11819
  static share(data: any, options: any): void;
11840
- /**
11841
- * List of helpers that are used in CodeceptJS and can't be used together
11842
- */
11843
- static STANDARD_ACTING_HELPERS: string[];
11844
11820
  }
11845
11821
  /**
11846
11822
  * Method collect own property and prototype
@@ -12204,12 +12180,13 @@ declare namespace CodeceptJS {
12204
12180
  args: any[];
12205
12181
  opts: Record<string, any>;
12206
12182
  actor: string;
12207
- helperMethod: string;
12208
12183
  status: string;
12209
12184
  prefix: string;
12210
12185
  comment: string;
12211
12186
  metaStep: any;
12212
12187
  stack: string;
12188
+ helper: any;
12189
+ helperMethod: string;
12213
12190
  timeout: any;
12214
12191
  /**
12215
12192
  * @param timeout - timeout in milliseconds or 0 if no timeout