codeceptjs 3.6.7 → 3.6.8-beta.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.
@@ -434,8 +434,8 @@ class Appium extends Webdriver {
434
434
  async runOnIOS(caps, fn) {
435
435
  if (this.platform !== 'ios') return
436
436
  recorder.session.start('iOS-only actions')
437
- await this._runWithCaps(caps, fn)
438
- await recorder.add('restore from iOS session', () => recorder.session.restore())
437
+ this._runWithCaps(caps, fn)
438
+ recorder.add('restore from iOS session', () => recorder.session.restore())
439
439
  return recorder.promise()
440
440
  }
441
441
 
@@ -476,8 +476,8 @@ class Appium extends Webdriver {
476
476
  async runOnAndroid(caps, fn) {
477
477
  if (this.platform !== 'android') return
478
478
  recorder.session.start('Android-only actions')
479
- await this._runWithCaps(caps, fn)
480
- await recorder.add('restore from Android session', () => recorder.session.restore())
479
+ this._runWithCaps(caps, fn)
480
+ recorder.add('restore from Android session', () => recorder.session.restore())
481
481
  return recorder.promise()
482
482
  }
483
483
 
@@ -503,7 +503,7 @@ class Appium extends Webdriver {
503
503
  }
504
504
  /* eslint-enable */
505
505
 
506
- async _runWithCaps(caps, fn) {
506
+ _runWithCaps(caps, fn) {
507
507
  if (typeof caps === 'object') {
508
508
  for (const key in caps) {
509
509
  // skip if capabilities do not match
@@ -3435,7 +3435,7 @@ class Playwright extends Helper {
3435
3435
  }
3436
3436
 
3437
3437
  _logWebsocketMessages(message) {
3438
- this.webSocketMessages += message
3438
+ this.webSocketMessages.push(message)
3439
3439
  }
3440
3440
  }
3441
3441
 
@@ -2772,7 +2772,7 @@ class Puppeteer extends Helper {
2772
2772
  }
2773
2773
 
2774
2774
  _logWebsocketMessages(message) {
2775
- this.webSocketMessages += message
2775
+ this.webSocketMessages.push(message)
2776
2776
  }
2777
2777
  }
2778
2778
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codeceptjs",
3
- "version": "3.6.7",
3
+ "version": "3.6.8-beta.1",
4
4
  "description": "Supercharged End 2 End Testing Framework for NodeJS",
5
5
  "keywords": [
6
6
  "acceptance",
@@ -73,9 +73,9 @@
73
73
  "@codeceptjs/configure": "1.0.1",
74
74
  "@codeceptjs/helper": "2.0.4",
75
75
  "@cucumber/cucumber-expressions": "17",
76
- "@cucumber/gherkin": "26",
76
+ "@cucumber/gherkin": "29",
77
77
  "@cucumber/messages": "25.0.1",
78
- "@xmldom/xmldom": "0.8.10",
78
+ "@xmldom/xmldom": "0.9.4",
79
79
  "acorn": "8.12.1",
80
80
  "arrify": "2.0.1",
81
81
  "axios": "1.7.7",
@@ -122,7 +122,7 @@
122
122
  },
123
123
  "devDependencies": {
124
124
  "@codeceptjs/mock-request": "0.3.1",
125
- "@faker-js/faker": "7.6.0",
125
+ "@faker-js/faker": "9.0.3",
126
126
  "@pollyjs/adapter-puppeteer": "6.0.6",
127
127
  "@pollyjs/core": "5.1.0",
128
128
  "@types/chai": "4.3.19",
@@ -130,11 +130,12 @@
130
130
  "@types/node": "22.5.5",
131
131
  "@wdio/sauce-service": "9.0.9",
132
132
  "@wdio/selenium-standalone-service": "8.3.2",
133
- "@wdio/utils": "9.0.6",
134
- "@xmldom/xmldom": "0.8.10",
133
+ "@wdio/utils": "9.1.2",
134
+ "@xmldom/xmldom": "0.9.4",
135
135
  "apollo-server-express": "2.25.3",
136
136
  "chai-as-promised": "7.1.2",
137
137
  "chai-subset": "1.6.0",
138
+ "cheerio": "^1.0.0",
138
139
  "contributor-faces": "1.1.0",
139
140
  "documentation": "12.3.0",
140
141
  "electron": "31.3.1",
@@ -165,8 +166,8 @@
165
166
  "tsd": "^0.31.0",
166
167
  "tsd-jsdoc": "2.5.0",
167
168
  "typedoc": "0.26.7",
168
- "typedoc-plugin-markdown": "4.2.6",
169
- "typescript": "5.6.2",
169
+ "typedoc-plugin-markdown": "4.2.9",
170
+ "typescript": "5.6.3",
170
171
  "wdio-docker-service": "1.5.0",
171
172
  "webdriverio": "8.39.1",
172
173
  "xml2js": "0.6.2",
@@ -1184,6 +1184,10 @@ declare namespace CodeceptJS {
1184
1184
  // @ts-ignore
1185
1185
  // @ts-ignore
1186
1186
  // @ts-ignore
1187
+ // @ts-ignore
1188
+ // @ts-ignore
1189
+ // @ts-ignore
1190
+ // @ts-ignore
1187
1191
  class ExpectHelper {
1188
1192
  expectEqual(actualValue: any, expectedValue: any, customErrorMsg?: any): Promise<any>;
1189
1193
  expectNotEqual(actualValue: any, expectedValue: any, customErrorMsg?: any): Promise<any>;
@@ -1299,6 +1303,10 @@ declare namespace CodeceptJS {
1299
1303
  // @ts-ignore
1300
1304
  // @ts-ignore
1301
1305
  // @ts-ignore
1306
+ // @ts-ignore
1307
+ // @ts-ignore
1308
+ // @ts-ignore
1309
+ // @ts-ignore
1302
1310
  class ExpectHelper {
1303
1311
  expectEqual(actualValue: any, expectedValue: any, customErrorMsg?: any): Promise<any>;
1304
1312
  expectNotEqual(actualValue: any, expectedValue: any, customErrorMsg?: any): Promise<any>;
@@ -1974,6 +1982,10 @@ declare namespace CodeceptJS {
1974
1982
  // @ts-ignore
1975
1983
  // @ts-ignore
1976
1984
  // @ts-ignore
1985
+ // @ts-ignore
1986
+ // @ts-ignore
1987
+ // @ts-ignore
1988
+ // @ts-ignore
1977
1989
  type MockServerConfig = {
1978
1990
  port?: number;
1979
1991
  host?: string;
@@ -2102,6 +2114,10 @@ declare namespace CodeceptJS {
2102
2114
  // @ts-ignore
2103
2115
  // @ts-ignore
2104
2116
  // @ts-ignore
2117
+ // @ts-ignore
2118
+ // @ts-ignore
2119
+ // @ts-ignore
2120
+ // @ts-ignore
2105
2121
  class MockServer {
2106
2122
  /**
2107
2123
  * Start the mock server
@@ -3179,6 +3195,10 @@ declare namespace CodeceptJS {
3179
3195
  // @ts-ignore
3180
3196
  // @ts-ignore
3181
3197
  // @ts-ignore
3198
+ // @ts-ignore
3199
+ // @ts-ignore
3200
+ // @ts-ignore
3201
+ // @ts-ignore
3182
3202
  type PlaywrightConfig = {
3183
3203
  url?: string;
3184
3204
  browser?: 'chromium' | 'firefox' | 'webkit' | 'electron';
@@ -6559,6 +6579,10 @@ declare namespace CodeceptJS {
6559
6579
  // @ts-ignore
6560
6580
  // @ts-ignore
6561
6581
  // @ts-ignore
6582
+ // @ts-ignore
6583
+ // @ts-ignore
6584
+ // @ts-ignore
6585
+ // @ts-ignore
6562
6586
  type PuppeteerConfig = {
6563
6587
  url: string;
6564
6588
  basicAuth?: any;
@@ -8369,6 +8393,10 @@ declare namespace CodeceptJS {
8369
8393
  // @ts-ignore
8370
8394
  // @ts-ignore
8371
8395
  // @ts-ignore
8396
+ // @ts-ignore
8397
+ // @ts-ignore
8398
+ // @ts-ignore
8399
+ // @ts-ignore
8372
8400
  type RESTConfig = {
8373
8401
  endpoint?: string;
8374
8402
  prettyPrintJson?: boolean;
@@ -9751,6 +9779,10 @@ declare namespace CodeceptJS {
9751
9779
  // @ts-ignore
9752
9780
  // @ts-ignore
9753
9781
  // @ts-ignore
9782
+ // @ts-ignore
9783
+ // @ts-ignore
9784
+ // @ts-ignore
9785
+ // @ts-ignore
9754
9786
  type WebDriverConfig = {
9755
9787
  url: string;
9756
9788
  browser: string;
@@ -1208,6 +1208,10 @@ declare namespace CodeceptJS {
1208
1208
  // @ts-ignore
1209
1209
  // @ts-ignore
1210
1210
  // @ts-ignore
1211
+ // @ts-ignore
1212
+ // @ts-ignore
1213
+ // @ts-ignore
1214
+ // @ts-ignore
1211
1215
  class ExpectHelper {
1212
1216
  expectEqual(actualValue: any, expectedValue: any, customErrorMsg?: any): void;
1213
1217
  expectNotEqual(actualValue: any, expectedValue: any, customErrorMsg?: any): void;
@@ -1323,6 +1327,10 @@ declare namespace CodeceptJS {
1323
1327
  // @ts-ignore
1324
1328
  // @ts-ignore
1325
1329
  // @ts-ignore
1330
+ // @ts-ignore
1331
+ // @ts-ignore
1332
+ // @ts-ignore
1333
+ // @ts-ignore
1326
1334
  class ExpectHelper {
1327
1335
  expectEqual(actualValue: any, expectedValue: any, customErrorMsg?: any): void;
1328
1336
  expectNotEqual(actualValue: any, expectedValue: any, customErrorMsg?: any): void;
@@ -2001,6 +2009,10 @@ declare namespace CodeceptJS {
2001
2009
  // @ts-ignore
2002
2010
  // @ts-ignore
2003
2011
  // @ts-ignore
2012
+ // @ts-ignore
2013
+ // @ts-ignore
2014
+ // @ts-ignore
2015
+ // @ts-ignore
2004
2016
  type MockServerConfig = {
2005
2017
  port?: number;
2006
2018
  host?: string;
@@ -2129,6 +2141,10 @@ declare namespace CodeceptJS {
2129
2141
  // @ts-ignore
2130
2142
  // @ts-ignore
2131
2143
  // @ts-ignore
2144
+ // @ts-ignore
2145
+ // @ts-ignore
2146
+ // @ts-ignore
2147
+ // @ts-ignore
2132
2148
  class MockServer {
2133
2149
  /**
2134
2150
  * Start the mock server
@@ -3272,6 +3288,10 @@ declare namespace CodeceptJS {
3272
3288
  // @ts-ignore
3273
3289
  // @ts-ignore
3274
3290
  // @ts-ignore
3291
+ // @ts-ignore
3292
+ // @ts-ignore
3293
+ // @ts-ignore
3294
+ // @ts-ignore
3275
3295
  type PlaywrightConfig = {
3276
3296
  url?: string;
3277
3297
  browser?: 'chromium' | 'firefox' | 'webkit' | 'electron';
@@ -6803,6 +6823,10 @@ declare namespace CodeceptJS {
6803
6823
  // @ts-ignore
6804
6824
  // @ts-ignore
6805
6825
  // @ts-ignore
6826
+ // @ts-ignore
6827
+ // @ts-ignore
6828
+ // @ts-ignore
6829
+ // @ts-ignore
6806
6830
  type PuppeteerConfig = {
6807
6831
  url: string;
6808
6832
  basicAuth?: any;
@@ -8749,6 +8773,10 @@ declare namespace CodeceptJS {
8749
8773
  // @ts-ignore
8750
8774
  // @ts-ignore
8751
8775
  // @ts-ignore
8776
+ // @ts-ignore
8777
+ // @ts-ignore
8778
+ // @ts-ignore
8779
+ // @ts-ignore
8752
8780
  type RESTConfig = {
8753
8781
  endpoint?: string;
8754
8782
  prettyPrintJson?: boolean;
@@ -10191,6 +10219,10 @@ declare namespace CodeceptJS {
10191
10219
  // @ts-ignore
10192
10220
  // @ts-ignore
10193
10221
  // @ts-ignore
10222
+ // @ts-ignore
10223
+ // @ts-ignore
10224
+ // @ts-ignore
10225
+ // @ts-ignore
10194
10226
  type WebDriverConfig = {
10195
10227
  url: string;
10196
10228
  browser: string;