codeceptjs 3.7.0-beta.13 → 3.7.0-beta.14
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/codecept.js +14 -12
- package/lib/command/check.js +11 -2
- package/lib/command/definitions.js +1 -1
- package/lib/command/gherkin/snippets.js +69 -69
- package/lib/command/interactive.js +1 -1
- package/lib/command/run-multiple/chunk.js +48 -45
- package/lib/container.js +14 -7
- package/lib/helper/AI.js +2 -1
- package/lib/mocha/asyncWrapper.js +3 -1
- package/lib/mocha/gherkin.js +1 -1
- package/lib/mocha/inject.js +5 -0
- package/lib/output.js +1 -1
- package/lib/plugin/analyze.js +5 -6
- package/lib/plugin/auth.js +435 -0
- package/lib/plugin/autoDelay.js +2 -2
- package/lib/plugin/autoLogin.js +3 -337
- package/lib/plugin/pageInfo.js +1 -1
- package/lib/plugin/screenshotOnFail.js +1 -1
- package/lib/plugin/standardActingHelpers.js +4 -1
- package/lib/plugin/stepByStepReport.js +1 -1
- package/lib/step/base.js +5 -0
- package/lib/step/comment.js +10 -0
- package/package.json +13 -14
- package/translations/de-DE.js +4 -3
- package/translations/fr-FR.js +4 -3
- package/translations/index.js +1 -0
- package/translations/it-IT.js +4 -3
- package/translations/ja-JP.js +4 -3
- package/translations/nl-NL.js +76 -0
- package/translations/pl-PL.js +4 -3
- package/translations/pt-BR.js +4 -3
- package/translations/ru-RU.js +4 -3
- package/translations/utils.js +9 -0
- package/translations/zh-CN.js +4 -3
- package/translations/zh-TW.js +4 -3
- package/typings/promiseBasedTypes.d.ts +6 -0
- package/typings/types.d.ts +6 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
module.exports.gherkinTranslations = function (langCode) {
|
|
2
|
+
const gherkinLanguages = require('@cucumber/gherkin/src/gherkin-languages.json')
|
|
3
|
+
const { feature, scenario, scenarioOutline } = gherkinLanguages[langCode]
|
|
4
|
+
return {
|
|
5
|
+
Feature: feature[0],
|
|
6
|
+
Scenario: scenario[0],
|
|
7
|
+
ScenarioOutline: scenarioOutline[0],
|
|
8
|
+
}
|
|
9
|
+
}
|
package/translations/zh-CN.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
const { gherkinTranslations } = require('./utils')
|
|
2
|
+
const langCode = 'zh-CN'
|
|
3
|
+
|
|
1
4
|
module.exports = {
|
|
2
5
|
I: '我',
|
|
3
6
|
contexts: {
|
|
4
|
-
|
|
5
|
-
Scenario: '场景',
|
|
6
|
-
ScenarioOutline: '场景大纲',
|
|
7
|
+
...gherkinTranslations(langCode),
|
|
7
8
|
},
|
|
8
9
|
actions: {
|
|
9
10
|
amOutsideAngularApp: '在Angular应用外',
|
package/translations/zh-TW.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
const { gherkinTranslations } = require('./utils')
|
|
2
|
+
const langCode = 'zh-TW'
|
|
3
|
+
|
|
1
4
|
module.exports = {
|
|
2
5
|
I: '我',
|
|
3
6
|
contexts: {
|
|
4
|
-
|
|
5
|
-
Scenario: '場景',
|
|
6
|
-
ScenarioOutline: '場景大綱',
|
|
7
|
+
...gherkinTranslations(langCode),
|
|
7
8
|
},
|
|
8
9
|
actions: {
|
|
9
10
|
amOutsideAngularApp: '在Angular應用外',
|
|
@@ -1762,6 +1762,7 @@ declare namespace CodeceptJS {
|
|
|
1762
1762
|
// @ts-ignore
|
|
1763
1763
|
// @ts-ignore
|
|
1764
1764
|
// @ts-ignore
|
|
1765
|
+
// @ts-ignore
|
|
1765
1766
|
type MockServerConfig = {
|
|
1766
1767
|
port?: number;
|
|
1767
1768
|
host?: string;
|
|
@@ -1889,6 +1890,7 @@ declare namespace CodeceptJS {
|
|
|
1889
1890
|
// @ts-ignore
|
|
1890
1891
|
// @ts-ignore
|
|
1891
1892
|
// @ts-ignore
|
|
1893
|
+
// @ts-ignore
|
|
1892
1894
|
class MockServer {
|
|
1893
1895
|
/**
|
|
1894
1896
|
* Start the mock server
|
|
@@ -2925,6 +2927,7 @@ declare namespace CodeceptJS {
|
|
|
2925
2927
|
// @ts-ignore
|
|
2926
2928
|
// @ts-ignore
|
|
2927
2929
|
// @ts-ignore
|
|
2930
|
+
// @ts-ignore
|
|
2928
2931
|
type PlaywrightConfig = {
|
|
2929
2932
|
url?: string;
|
|
2930
2933
|
browser?: 'chromium' | 'firefox' | 'webkit' | 'electron';
|
|
@@ -6304,6 +6307,7 @@ declare namespace CodeceptJS {
|
|
|
6304
6307
|
// @ts-ignore
|
|
6305
6308
|
// @ts-ignore
|
|
6306
6309
|
// @ts-ignore
|
|
6310
|
+
// @ts-ignore
|
|
6307
6311
|
type PuppeteerConfig = {
|
|
6308
6312
|
url: string;
|
|
6309
6313
|
basicAuth?: any;
|
|
@@ -8113,6 +8117,7 @@ declare namespace CodeceptJS {
|
|
|
8113
8117
|
// @ts-ignore
|
|
8114
8118
|
// @ts-ignore
|
|
8115
8119
|
// @ts-ignore
|
|
8120
|
+
// @ts-ignore
|
|
8116
8121
|
type RESTConfig = {
|
|
8117
8122
|
endpoint?: string;
|
|
8118
8123
|
prettyPrintJson?: boolean;
|
|
@@ -9260,6 +9265,7 @@ declare namespace CodeceptJS {
|
|
|
9260
9265
|
// @ts-ignore
|
|
9261
9266
|
// @ts-ignore
|
|
9262
9267
|
// @ts-ignore
|
|
9268
|
+
// @ts-ignore
|
|
9263
9269
|
type WebDriverConfig = {
|
|
9264
9270
|
url: string;
|
|
9265
9271
|
browser: string;
|
package/typings/types.d.ts
CHANGED
|
@@ -1789,6 +1789,7 @@ declare namespace CodeceptJS {
|
|
|
1789
1789
|
// @ts-ignore
|
|
1790
1790
|
// @ts-ignore
|
|
1791
1791
|
// @ts-ignore
|
|
1792
|
+
// @ts-ignore
|
|
1792
1793
|
type MockServerConfig = {
|
|
1793
1794
|
port?: number;
|
|
1794
1795
|
host?: string;
|
|
@@ -1916,6 +1917,7 @@ declare namespace CodeceptJS {
|
|
|
1916
1917
|
// @ts-ignore
|
|
1917
1918
|
// @ts-ignore
|
|
1918
1919
|
// @ts-ignore
|
|
1920
|
+
// @ts-ignore
|
|
1919
1921
|
class MockServer {
|
|
1920
1922
|
/**
|
|
1921
1923
|
* Start the mock server
|
|
@@ -3018,6 +3020,7 @@ declare namespace CodeceptJS {
|
|
|
3018
3020
|
// @ts-ignore
|
|
3019
3021
|
// @ts-ignore
|
|
3020
3022
|
// @ts-ignore
|
|
3023
|
+
// @ts-ignore
|
|
3021
3024
|
type PlaywrightConfig = {
|
|
3022
3025
|
url?: string;
|
|
3023
3026
|
browser?: 'chromium' | 'firefox' | 'webkit' | 'electron';
|
|
@@ -6548,6 +6551,7 @@ declare namespace CodeceptJS {
|
|
|
6548
6551
|
// @ts-ignore
|
|
6549
6552
|
// @ts-ignore
|
|
6550
6553
|
// @ts-ignore
|
|
6554
|
+
// @ts-ignore
|
|
6551
6555
|
type PuppeteerConfig = {
|
|
6552
6556
|
url: string;
|
|
6553
6557
|
basicAuth?: any;
|
|
@@ -8493,6 +8497,7 @@ declare namespace CodeceptJS {
|
|
|
8493
8497
|
// @ts-ignore
|
|
8494
8498
|
// @ts-ignore
|
|
8495
8499
|
// @ts-ignore
|
|
8500
|
+
// @ts-ignore
|
|
8496
8501
|
type RESTConfig = {
|
|
8497
8502
|
endpoint?: string;
|
|
8498
8503
|
prettyPrintJson?: boolean;
|
|
@@ -9700,6 +9705,7 @@ declare namespace CodeceptJS {
|
|
|
9700
9705
|
// @ts-ignore
|
|
9701
9706
|
// @ts-ignore
|
|
9702
9707
|
// @ts-ignore
|
|
9708
|
+
// @ts-ignore
|
|
9703
9709
|
type WebDriverConfig = {
|
|
9704
9710
|
url: string;
|
|
9705
9711
|
browser: string;
|