@jahia/cypress 6.4.4 → 6.4.5
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.
|
@@ -202,11 +202,11 @@ function enable() {
|
|
|
202
202
|
// Ensure the logger is enabled
|
|
203
203
|
Cypress.env(envVarDisableJsLogger, false);
|
|
204
204
|
/**
|
|
205
|
-
* Attach Cypress hooks
|
|
205
|
+
* Attach Cypress hooks for console messages collecting before EACH test execution.
|
|
206
206
|
* Use 'beforeEach' hook and local (cy) context instead of global (Cypress) one
|
|
207
207
|
* to ensure proper async flow and avoid events and hooks flakiness.
|
|
208
208
|
*/
|
|
209
|
-
|
|
209
|
+
beforeEach(function () {
|
|
210
210
|
attachJsInterceptor();
|
|
211
211
|
});
|
|
212
212
|
/**
|
package/package.json
CHANGED
|
@@ -221,11 +221,11 @@ function enable(): void {
|
|
|
221
221
|
Cypress.env(envVarDisableJsLogger, false);
|
|
222
222
|
|
|
223
223
|
/**
|
|
224
|
-
* Attach Cypress hooks
|
|
224
|
+
* Attach Cypress hooks for console messages collecting before EACH test execution.
|
|
225
225
|
* Use 'beforeEach' hook and local (cy) context instead of global (Cypress) one
|
|
226
226
|
* to ensure proper async flow and avoid events and hooks flakiness.
|
|
227
227
|
*/
|
|
228
|
-
|
|
228
|
+
beforeEach(() => {
|
|
229
229
|
attachJsInterceptor();
|
|
230
230
|
});
|
|
231
231
|
|