codeceptjs 3.6.5-beta.1 → 3.6.5-beta.3
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.
|
@@ -88,6 +88,10 @@ module.exports = function (config) {
|
|
|
88
88
|
const pad = '0000'
|
|
89
89
|
const reportDir = config.output ? path.resolve(global.codecept_dir, config.output) : defaultConfig.output
|
|
90
90
|
|
|
91
|
+
event.dispatcher.on(event.suite.before, (suite) => {
|
|
92
|
+
stepNum = -1
|
|
93
|
+
})
|
|
94
|
+
|
|
91
95
|
event.dispatcher.on(event.test.before, (test) => {
|
|
92
96
|
const sha256hash = crypto
|
|
93
97
|
.createHash('sha256')
|
|
@@ -106,8 +110,8 @@ module.exports = function (config) {
|
|
|
106
110
|
recorder.add('screenshot of failed test', async () => persistStep(step), true)
|
|
107
111
|
})
|
|
108
112
|
|
|
109
|
-
event.dispatcher.on(event.step.
|
|
110
|
-
recorder.add('screenshot of
|
|
113
|
+
event.dispatcher.on(event.step.after, (step) => {
|
|
114
|
+
recorder.add('screenshot of step of test', async () => persistStep(step), true)
|
|
111
115
|
})
|
|
112
116
|
|
|
113
117
|
event.dispatcher.on(event.test.passed, (test) => {
|
|
@@ -149,6 +153,7 @@ module.exports = function (config) {
|
|
|
149
153
|
})
|
|
150
154
|
|
|
151
155
|
async function persistStep(step) {
|
|
156
|
+
if (stepNum === -1) return // Ignore steps from BeforeSuite function
|
|
152
157
|
if (isStepIgnored(step)) return
|
|
153
158
|
if (savedStep === step) return // already saved
|
|
154
159
|
// Ignore steps from BeforeSuite function
|
package/package.json
CHANGED
|
@@ -1183,6 +1183,8 @@ declare namespace CodeceptJS {
|
|
|
1183
1183
|
// @ts-ignore
|
|
1184
1184
|
// @ts-ignore
|
|
1185
1185
|
// @ts-ignore
|
|
1186
|
+
// @ts-ignore
|
|
1187
|
+
// @ts-ignore
|
|
1186
1188
|
class ExpectHelper {
|
|
1187
1189
|
expectEqual(actualValue: any, expectedValue: any, customErrorMsg?: any): Promise<any>;
|
|
1188
1190
|
expectNotEqual(actualValue: any, expectedValue: any, customErrorMsg?: any): Promise<any>;
|
|
@@ -1297,6 +1299,8 @@ declare namespace CodeceptJS {
|
|
|
1297
1299
|
// @ts-ignore
|
|
1298
1300
|
// @ts-ignore
|
|
1299
1301
|
// @ts-ignore
|
|
1302
|
+
// @ts-ignore
|
|
1303
|
+
// @ts-ignore
|
|
1300
1304
|
class ExpectHelper {
|
|
1301
1305
|
expectEqual(actualValue: any, expectedValue: any, customErrorMsg?: any): Promise<any>;
|
|
1302
1306
|
expectNotEqual(actualValue: any, expectedValue: any, customErrorMsg?: any): Promise<any>;
|
|
@@ -1971,6 +1975,8 @@ declare namespace CodeceptJS {
|
|
|
1971
1975
|
// @ts-ignore
|
|
1972
1976
|
// @ts-ignore
|
|
1973
1977
|
// @ts-ignore
|
|
1978
|
+
// @ts-ignore
|
|
1979
|
+
// @ts-ignore
|
|
1974
1980
|
type MockServerConfig = {
|
|
1975
1981
|
port?: number;
|
|
1976
1982
|
host?: string;
|
|
@@ -2098,6 +2104,8 @@ declare namespace CodeceptJS {
|
|
|
2098
2104
|
// @ts-ignore
|
|
2099
2105
|
// @ts-ignore
|
|
2100
2106
|
// @ts-ignore
|
|
2107
|
+
// @ts-ignore
|
|
2108
|
+
// @ts-ignore
|
|
2101
2109
|
class MockServer {
|
|
2102
2110
|
/**
|
|
2103
2111
|
* Start the mock server
|
|
@@ -3174,6 +3182,8 @@ declare namespace CodeceptJS {
|
|
|
3174
3182
|
// @ts-ignore
|
|
3175
3183
|
// @ts-ignore
|
|
3176
3184
|
// @ts-ignore
|
|
3185
|
+
// @ts-ignore
|
|
3186
|
+
// @ts-ignore
|
|
3177
3187
|
type PlaywrightConfig = {
|
|
3178
3188
|
url?: string;
|
|
3179
3189
|
browser?: 'chromium' | 'firefox' | 'webkit' | 'electron';
|
|
@@ -6553,6 +6563,8 @@ declare namespace CodeceptJS {
|
|
|
6553
6563
|
// @ts-ignore
|
|
6554
6564
|
// @ts-ignore
|
|
6555
6565
|
// @ts-ignore
|
|
6566
|
+
// @ts-ignore
|
|
6567
|
+
// @ts-ignore
|
|
6556
6568
|
type PuppeteerConfig = {
|
|
6557
6569
|
url: string;
|
|
6558
6570
|
basicAuth?: any;
|
|
@@ -8362,6 +8374,8 @@ declare namespace CodeceptJS {
|
|
|
8362
8374
|
// @ts-ignore
|
|
8363
8375
|
// @ts-ignore
|
|
8364
8376
|
// @ts-ignore
|
|
8377
|
+
// @ts-ignore
|
|
8378
|
+
// @ts-ignore
|
|
8365
8379
|
type RESTConfig = {
|
|
8366
8380
|
endpoint?: string;
|
|
8367
8381
|
prettyPrintJson?: boolean;
|
|
@@ -9483,6 +9497,8 @@ declare namespace CodeceptJS {
|
|
|
9483
9497
|
// @ts-ignore
|
|
9484
9498
|
// @ts-ignore
|
|
9485
9499
|
// @ts-ignore
|
|
9500
|
+
// @ts-ignore
|
|
9501
|
+
// @ts-ignore
|
|
9486
9502
|
type WebDriverConfig = {
|
|
9487
9503
|
url: string;
|
|
9488
9504
|
browser: string;
|
package/typings/types.d.ts
CHANGED
|
@@ -1207,6 +1207,8 @@ declare namespace CodeceptJS {
|
|
|
1207
1207
|
// @ts-ignore
|
|
1208
1208
|
// @ts-ignore
|
|
1209
1209
|
// @ts-ignore
|
|
1210
|
+
// @ts-ignore
|
|
1211
|
+
// @ts-ignore
|
|
1210
1212
|
class ExpectHelper {
|
|
1211
1213
|
expectEqual(actualValue: any, expectedValue: any, customErrorMsg?: any): void;
|
|
1212
1214
|
expectNotEqual(actualValue: any, expectedValue: any, customErrorMsg?: any): void;
|
|
@@ -1321,6 +1323,8 @@ declare namespace CodeceptJS {
|
|
|
1321
1323
|
// @ts-ignore
|
|
1322
1324
|
// @ts-ignore
|
|
1323
1325
|
// @ts-ignore
|
|
1326
|
+
// @ts-ignore
|
|
1327
|
+
// @ts-ignore
|
|
1324
1328
|
class ExpectHelper {
|
|
1325
1329
|
expectEqual(actualValue: any, expectedValue: any, customErrorMsg?: any): void;
|
|
1326
1330
|
expectNotEqual(actualValue: any, expectedValue: any, customErrorMsg?: any): void;
|
|
@@ -1998,6 +2002,8 @@ declare namespace CodeceptJS {
|
|
|
1998
2002
|
// @ts-ignore
|
|
1999
2003
|
// @ts-ignore
|
|
2000
2004
|
// @ts-ignore
|
|
2005
|
+
// @ts-ignore
|
|
2006
|
+
// @ts-ignore
|
|
2001
2007
|
type MockServerConfig = {
|
|
2002
2008
|
port?: number;
|
|
2003
2009
|
host?: string;
|
|
@@ -2125,6 +2131,8 @@ declare namespace CodeceptJS {
|
|
|
2125
2131
|
// @ts-ignore
|
|
2126
2132
|
// @ts-ignore
|
|
2127
2133
|
// @ts-ignore
|
|
2134
|
+
// @ts-ignore
|
|
2135
|
+
// @ts-ignore
|
|
2128
2136
|
class MockServer {
|
|
2129
2137
|
/**
|
|
2130
2138
|
* Start the mock server
|
|
@@ -3267,6 +3275,8 @@ declare namespace CodeceptJS {
|
|
|
3267
3275
|
// @ts-ignore
|
|
3268
3276
|
// @ts-ignore
|
|
3269
3277
|
// @ts-ignore
|
|
3278
|
+
// @ts-ignore
|
|
3279
|
+
// @ts-ignore
|
|
3270
3280
|
type PlaywrightConfig = {
|
|
3271
3281
|
url?: string;
|
|
3272
3282
|
browser?: 'chromium' | 'firefox' | 'webkit' | 'electron';
|
|
@@ -6797,6 +6807,8 @@ declare namespace CodeceptJS {
|
|
|
6797
6807
|
// @ts-ignore
|
|
6798
6808
|
// @ts-ignore
|
|
6799
6809
|
// @ts-ignore
|
|
6810
|
+
// @ts-ignore
|
|
6811
|
+
// @ts-ignore
|
|
6800
6812
|
type PuppeteerConfig = {
|
|
6801
6813
|
url: string;
|
|
6802
6814
|
basicAuth?: any;
|
|
@@ -8742,6 +8754,8 @@ declare namespace CodeceptJS {
|
|
|
8742
8754
|
// @ts-ignore
|
|
8743
8755
|
// @ts-ignore
|
|
8744
8756
|
// @ts-ignore
|
|
8757
|
+
// @ts-ignore
|
|
8758
|
+
// @ts-ignore
|
|
8745
8759
|
type RESTConfig = {
|
|
8746
8760
|
endpoint?: string;
|
|
8747
8761
|
prettyPrintJson?: boolean;
|
|
@@ -9923,6 +9937,8 @@ declare namespace CodeceptJS {
|
|
|
9923
9937
|
// @ts-ignore
|
|
9924
9938
|
// @ts-ignore
|
|
9925
9939
|
// @ts-ignore
|
|
9940
|
+
// @ts-ignore
|
|
9941
|
+
// @ts-ignore
|
|
9926
9942
|
type WebDriverConfig = {
|
|
9927
9943
|
url: string;
|
|
9928
9944
|
browser: string;
|