codeceptjs 3.7.0 → 3.7.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.
@@ -22,7 +22,8 @@ const injectHook = function (inject, suite) {
22
22
  function suiteTestFailedHookError(suite, err, hookName) {
23
23
  suite.eachTest(test => {
24
24
  test.err = err
25
- event.emit(event.test.failed, test, err, ucfirst(hookName))
25
+ if (hookName) hookName = ucfirst(hookName)
26
+ event.emit(event.test.failed, test, err, hookName)
26
27
  })
27
28
  }
28
29
 
@@ -160,7 +160,8 @@ const defaultConfig = {
160
160
  }
161
161
 
162
162
  /**
163
- * CodeceptJS Analyze Plugin - Uses AI to analyze test failures and provide insights
163
+ *
164
+ * Uses AI to analyze test failures and provide insights
164
165
  *
165
166
  * This plugin analyzes failed tests using AI to provide detailed explanations and group similar failures.
166
167
  * When enabled with --ai flag, it generates reports after test execution.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codeceptjs",
3
- "version": "3.7.0",
3
+ "version": "3.7.1",
4
4
  "description": "Supercharged End 2 End Testing Framework for NodeJS",
5
5
  "keywords": [
6
6
  "acceptance",
@@ -1760,6 +1760,8 @@ declare namespace CodeceptJS {
1760
1760
  * @property [httpsOpts] - key & cert values are the paths to .key and .crt files
1761
1761
  */
1762
1762
  // @ts-ignore
1763
+ // @ts-ignore
1764
+ // @ts-ignore
1763
1765
  type MockServerConfig = {
1764
1766
  port?: number;
1765
1767
  host?: string;
@@ -1885,6 +1887,8 @@ declare namespace CodeceptJS {
1885
1887
  * ## Methods
1886
1888
  */
1887
1889
  // @ts-ignore
1890
+ // @ts-ignore
1891
+ // @ts-ignore
1888
1892
  class MockServer {
1889
1893
  /**
1890
1894
  * Start the mock server
@@ -2919,6 +2923,8 @@ declare namespace CodeceptJS {
2919
2923
  * @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).
2920
2924
  */
2921
2925
  // @ts-ignore
2926
+ // @ts-ignore
2927
+ // @ts-ignore
2922
2928
  type PlaywrightConfig = {
2923
2929
  url?: string;
2924
2930
  browser?: 'chromium' | 'firefox' | 'webkit' | 'electron';
@@ -6296,6 +6302,8 @@ declare namespace CodeceptJS {
6296
6302
  * @property [highlightElement] - highlight the interacting elements. Default: false. Note: only activate under verbose mode (--verbose).
6297
6303
  */
6298
6304
  // @ts-ignore
6305
+ // @ts-ignore
6306
+ // @ts-ignore
6299
6307
  type PuppeteerConfig = {
6300
6308
  url: string;
6301
6309
  basicAuth?: any;
@@ -8103,6 +8111,8 @@ declare namespace CodeceptJS {
8103
8111
  * @property [maxUploadFileSize] - set the max content file size in MB when performing api calls.
8104
8112
  */
8105
8113
  // @ts-ignore
8114
+ // @ts-ignore
8115
+ // @ts-ignore
8106
8116
  type RESTConfig = {
8107
8117
  endpoint?: string;
8108
8118
  prettyPrintJson?: boolean;
@@ -9248,6 +9258,8 @@ declare namespace CodeceptJS {
9248
9258
  * @property [logLevel = silent] - level of logging verbosity. Default: silent. Options: trace | debug | info | warn | error | silent. More info: https://webdriver.io/docs/configuration/#loglevel
9249
9259
  */
9250
9260
  // @ts-ignore
9261
+ // @ts-ignore
9262
+ // @ts-ignore
9251
9263
  type WebDriverConfig = {
9252
9264
  url: string;
9253
9265
  browser: string;
@@ -1787,6 +1787,8 @@ declare namespace CodeceptJS {
1787
1787
  * @property [httpsOpts] - key & cert values are the paths to .key and .crt files
1788
1788
  */
1789
1789
  // @ts-ignore
1790
+ // @ts-ignore
1791
+ // @ts-ignore
1790
1792
  type MockServerConfig = {
1791
1793
  port?: number;
1792
1794
  host?: string;
@@ -1912,6 +1914,8 @@ declare namespace CodeceptJS {
1912
1914
  * ## Methods
1913
1915
  */
1914
1916
  // @ts-ignore
1917
+ // @ts-ignore
1918
+ // @ts-ignore
1915
1919
  class MockServer {
1916
1920
  /**
1917
1921
  * Start the mock server
@@ -3012,6 +3016,8 @@ declare namespace CodeceptJS {
3012
3016
  * @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).
3013
3017
  */
3014
3018
  // @ts-ignore
3019
+ // @ts-ignore
3020
+ // @ts-ignore
3015
3021
  type PlaywrightConfig = {
3016
3022
  url?: string;
3017
3023
  browser?: 'chromium' | 'firefox' | 'webkit' | 'electron';
@@ -6540,6 +6546,8 @@ declare namespace CodeceptJS {
6540
6546
  * @property [highlightElement] - highlight the interacting elements. Default: false. Note: only activate under verbose mode (--verbose).
6541
6547
  */
6542
6548
  // @ts-ignore
6549
+ // @ts-ignore
6550
+ // @ts-ignore
6543
6551
  type PuppeteerConfig = {
6544
6552
  url: string;
6545
6553
  basicAuth?: any;
@@ -8483,6 +8491,8 @@ declare namespace CodeceptJS {
8483
8491
  * @property [maxUploadFileSize] - set the max content file size in MB when performing api calls.
8484
8492
  */
8485
8493
  // @ts-ignore
8494
+ // @ts-ignore
8495
+ // @ts-ignore
8486
8496
  type RESTConfig = {
8487
8497
  endpoint?: string;
8488
8498
  prettyPrintJson?: boolean;
@@ -9688,6 +9698,8 @@ declare namespace CodeceptJS {
9688
9698
  * @property [logLevel = silent] - level of logging verbosity. Default: silent. Options: trace | debug | info | warn | error | silent. More info: https://webdriver.io/docs/configuration/#loglevel
9689
9699
  */
9690
9700
  // @ts-ignore
9701
+ // @ts-ignore
9702
+ // @ts-ignore
9691
9703
  type WebDriverConfig = {
9692
9704
  url: string;
9693
9705
  browser: string;