codeceptjs 3.7.5-beta.16 → 3.7.5-beta.17
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/helper/Puppeteer.js
CHANGED
|
@@ -2591,7 +2591,8 @@ class Puppeteer extends Helper {
|
|
|
2591
2591
|
*
|
|
2592
2592
|
* {{> stopRecordingTraffic }}
|
|
2593
2593
|
*/
|
|
2594
|
-
stopRecordingTraffic() {
|
|
2594
|
+
async stopRecordingTraffic() {
|
|
2595
|
+
await this.page.setRequestInterception(false)
|
|
2595
2596
|
stopRecordingTraffic.call(this)
|
|
2596
2597
|
}
|
|
2597
2598
|
|
|
@@ -30,7 +30,7 @@ async function seeTraffic({
|
|
|
30
30
|
throw new Error('Missing required key "url" in object given to "I.seeTraffic".');
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
if (!this.
|
|
33
|
+
if (!this.recordedAtLeastOnce) {
|
|
34
34
|
throw new Error('Failure in test automation. You use "I.seeTraffic", but "I.startRecordingTraffic" was never called before.');
|
|
35
35
|
}
|
|
36
36
|
|
|
@@ -66,7 +66,7 @@ async function seeTraffic({
|
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
async function grabRecordedNetworkTraffics() {
|
|
69
|
-
if (!this.
|
|
69
|
+
if (!this.recordedAtLeastOnce) {
|
|
70
70
|
throw new Error('Failure in test automation. You use "I.grabRecordedNetworkTraffics", but "I.startRecordingTraffic" was never called before.');
|
|
71
71
|
}
|
|
72
72
|
|
|
@@ -107,6 +107,8 @@ async function grabRecordedNetworkTraffics() {
|
|
|
107
107
|
function stopRecordingTraffic() {
|
|
108
108
|
// @ts-ignore
|
|
109
109
|
this.page.removeAllListeners('request');
|
|
110
|
+
// @ts-ignore
|
|
111
|
+
this.page.removeAllListeners('requestfinished');
|
|
110
112
|
this.recording = false;
|
|
111
113
|
}
|
|
112
114
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "codeceptjs",
|
|
3
|
-
"version": "3.7.5-beta.
|
|
3
|
+
"version": "3.7.5-beta.17",
|
|
4
4
|
"description": "Supercharged End 2 End Testing Framework for NodeJS",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"acceptance",
|
|
@@ -78,12 +78,12 @@
|
|
|
78
78
|
"@codeceptjs/configure": "1.0.6",
|
|
79
79
|
"@codeceptjs/helper": "2.0.4",
|
|
80
80
|
"@cucumber/cucumber-expressions": "18",
|
|
81
|
-
"@cucumber/gherkin": "
|
|
82
|
-
"@cucumber/messages": "
|
|
81
|
+
"@cucumber/gherkin": "35.0.0",
|
|
82
|
+
"@cucumber/messages": "29.0.1",
|
|
83
83
|
"@xmldom/xmldom": "0.9.8",
|
|
84
|
-
"acorn": "8.
|
|
84
|
+
"acorn": "8.15.0",
|
|
85
85
|
"arrify": "3.0.0",
|
|
86
|
-
"axios": "1.
|
|
86
|
+
"axios": "1.12.2",
|
|
87
87
|
"chalk": "4.1.2",
|
|
88
88
|
"cheerio": "^1.0.0",
|
|
89
89
|
"chokidar": "^4.0.3",
|
|
@@ -95,20 +95,20 @@
|
|
|
95
95
|
"escape-string-regexp": "4.0.0",
|
|
96
96
|
"figures": "3.2.0",
|
|
97
97
|
"fn-args": "4.0.0",
|
|
98
|
-
"fs-extra": "11.3.
|
|
98
|
+
"fs-extra": "11.3.2",
|
|
99
99
|
"fuse.js": "^7.0.0",
|
|
100
100
|
"glob": ">=9.0.0 <12",
|
|
101
101
|
"html-minifier-terser": "7.2.0",
|
|
102
102
|
"inquirer": "^8.2.7",
|
|
103
103
|
"invisi-data": "^1.0.0",
|
|
104
|
-
"joi": "
|
|
104
|
+
"joi": "18.0.1",
|
|
105
105
|
"js-beautify": "1.15.4",
|
|
106
106
|
"lodash.clonedeep": "4.5.0",
|
|
107
107
|
"lodash.merge": "4.6.2",
|
|
108
108
|
"lodash.shuffle": "4.2.0",
|
|
109
109
|
"mkdirp": "3.0.1",
|
|
110
|
-
"mocha": "11.
|
|
111
|
-
"monocart-coverage-reports": "2.12.
|
|
110
|
+
"mocha": "11.7.2",
|
|
111
|
+
"monocart-coverage-reports": "2.12.9",
|
|
112
112
|
"ms": "2.1.3",
|
|
113
113
|
"multer": "^2.0.2",
|
|
114
114
|
"ora-classic": "5.4.2",
|
|
@@ -120,20 +120,20 @@
|
|
|
120
120
|
"uuid": "11.1.0"
|
|
121
121
|
},
|
|
122
122
|
"optionalDependencies": {
|
|
123
|
-
"@codeceptjs/detox-helper": "1.1.
|
|
123
|
+
"@codeceptjs/detox-helper": "1.1.12"
|
|
124
124
|
},
|
|
125
125
|
"devDependencies": {
|
|
126
|
-
"@apollo/server": "^
|
|
126
|
+
"@apollo/server": "^5",
|
|
127
127
|
"@codeceptjs/expect-helper": "^1.0.2",
|
|
128
128
|
"@codeceptjs/mock-request": "0.3.1",
|
|
129
129
|
"@eslint/eslintrc": "3.3.1",
|
|
130
|
-
"@eslint/js": "9.
|
|
130
|
+
"@eslint/js": "9.35.0",
|
|
131
131
|
"@faker-js/faker": "9.8.0",
|
|
132
132
|
"@pollyjs/adapter-puppeteer": "6.0.6",
|
|
133
133
|
"@pollyjs/core": "6.0.6",
|
|
134
134
|
"@types/chai": "5.2.2",
|
|
135
|
-
"@types/inquirer": "9.0.
|
|
136
|
-
"@types/node": "24.0
|
|
135
|
+
"@types/inquirer": "9.0.9",
|
|
136
|
+
"@types/node": "24.5.0",
|
|
137
137
|
"@wdio/sauce-service": "9.12.5",
|
|
138
138
|
"@wdio/selenium-standalone-service": "8.15.0",
|
|
139
139
|
"@wdio/utils": "9.15.0",
|
|
@@ -142,13 +142,13 @@
|
|
|
142
142
|
"chai-as-promised": "7.1.2",
|
|
143
143
|
"chai-subset": "1.6.0",
|
|
144
144
|
"documentation": "14.0.3",
|
|
145
|
-
"electron": "
|
|
146
|
-
"eslint": "^9.
|
|
145
|
+
"electron": "38.1.0",
|
|
146
|
+
"eslint": "^9.35.0",
|
|
147
147
|
"eslint-plugin-import": "2.32.0",
|
|
148
148
|
"eslint-plugin-mocha": "11.1.0",
|
|
149
|
-
"expect": "30.
|
|
149
|
+
"expect": "30.1.2",
|
|
150
150
|
"express": "^5.1.0",
|
|
151
|
-
"globals": "16.
|
|
151
|
+
"globals": "16.4.0",
|
|
152
152
|
"graphql": "16.11.0",
|
|
153
153
|
"graphql-tag": "^2.12.6",
|
|
154
154
|
"husky": "9.1.7",
|
|
@@ -171,7 +171,7 @@
|
|
|
171
171
|
"ts-node": "10.9.2",
|
|
172
172
|
"tsd": "^0.33.0",
|
|
173
173
|
"tsd-jsdoc": "2.5.0",
|
|
174
|
-
"typedoc": "0.28.
|
|
174
|
+
"typedoc": "0.28.13",
|
|
175
175
|
"typedoc-plugin-markdown": "4.8.1",
|
|
176
176
|
"typescript": "5.8.3",
|
|
177
177
|
"wdio-docker-service": "3.2.1",
|
|
@@ -189,5 +189,8 @@
|
|
|
189
189
|
"compilerOptions": {
|
|
190
190
|
"strict": false
|
|
191
191
|
}
|
|
192
|
+
},
|
|
193
|
+
"overrides": {
|
|
194
|
+
"tmp": "0.2.5"
|
|
192
195
|
}
|
|
193
196
|
}
|
|
@@ -2738,6 +2738,8 @@ declare namespace CodeceptJS {
|
|
|
2738
2738
|
// @ts-ignore
|
|
2739
2739
|
// @ts-ignore
|
|
2740
2740
|
// @ts-ignore
|
|
2741
|
+
// @ts-ignore
|
|
2742
|
+
// @ts-ignore
|
|
2741
2743
|
type PlaywrightConfig = {
|
|
2742
2744
|
url?: string;
|
|
2743
2745
|
browser?: 'chromium' | 'firefox' | 'webkit' | 'electron';
|
|
@@ -6118,6 +6120,8 @@ declare namespace CodeceptJS {
|
|
|
6118
6120
|
// @ts-ignore
|
|
6119
6121
|
// @ts-ignore
|
|
6120
6122
|
// @ts-ignore
|
|
6123
|
+
// @ts-ignore
|
|
6124
|
+
// @ts-ignore
|
|
6121
6125
|
type PuppeteerConfig = {
|
|
6122
6126
|
url: string;
|
|
6123
6127
|
basicAuth?: any;
|
|
@@ -7927,6 +7931,8 @@ declare namespace CodeceptJS {
|
|
|
7927
7931
|
// @ts-ignore
|
|
7928
7932
|
// @ts-ignore
|
|
7929
7933
|
// @ts-ignore
|
|
7934
|
+
// @ts-ignore
|
|
7935
|
+
// @ts-ignore
|
|
7930
7936
|
type RESTConfig = {
|
|
7931
7937
|
endpoint?: string;
|
|
7932
7938
|
prettyPrintJson?: boolean;
|
|
@@ -9075,6 +9081,8 @@ declare namespace CodeceptJS {
|
|
|
9075
9081
|
// @ts-ignore
|
|
9076
9082
|
// @ts-ignore
|
|
9077
9083
|
// @ts-ignore
|
|
9084
|
+
// @ts-ignore
|
|
9085
|
+
// @ts-ignore
|
|
9078
9086
|
type WebDriverConfig = {
|
|
9079
9087
|
url: string;
|
|
9080
9088
|
browser: string;
|
package/typings/types.d.ts
CHANGED
|
@@ -2828,6 +2828,8 @@ declare namespace CodeceptJS {
|
|
|
2828
2828
|
// @ts-ignore
|
|
2829
2829
|
// @ts-ignore
|
|
2830
2830
|
// @ts-ignore
|
|
2831
|
+
// @ts-ignore
|
|
2832
|
+
// @ts-ignore
|
|
2831
2833
|
type PlaywrightConfig = {
|
|
2832
2834
|
url?: string;
|
|
2833
2835
|
browser?: 'chromium' | 'firefox' | 'webkit' | 'electron';
|
|
@@ -6359,6 +6361,8 @@ declare namespace CodeceptJS {
|
|
|
6359
6361
|
// @ts-ignore
|
|
6360
6362
|
// @ts-ignore
|
|
6361
6363
|
// @ts-ignore
|
|
6364
|
+
// @ts-ignore
|
|
6365
|
+
// @ts-ignore
|
|
6362
6366
|
type PuppeteerConfig = {
|
|
6363
6367
|
url: string;
|
|
6364
6368
|
basicAuth?: any;
|
|
@@ -8304,6 +8308,8 @@ declare namespace CodeceptJS {
|
|
|
8304
8308
|
// @ts-ignore
|
|
8305
8309
|
// @ts-ignore
|
|
8306
8310
|
// @ts-ignore
|
|
8311
|
+
// @ts-ignore
|
|
8312
|
+
// @ts-ignore
|
|
8307
8313
|
type RESTConfig = {
|
|
8308
8314
|
endpoint?: string;
|
|
8309
8315
|
prettyPrintJson?: boolean;
|
|
@@ -9512,6 +9518,8 @@ declare namespace CodeceptJS {
|
|
|
9512
9518
|
// @ts-ignore
|
|
9513
9519
|
// @ts-ignore
|
|
9514
9520
|
// @ts-ignore
|
|
9521
|
+
// @ts-ignore
|
|
9522
|
+
// @ts-ignore
|
|
9515
9523
|
type WebDriverConfig = {
|
|
9516
9524
|
url: string;
|
|
9517
9525
|
browser: string;
|