|
Lines 31-36
Cypress.on("window:before:load", win => {
Link Here
|
| 31 |
throw new Error(`JS Warning detected: ${args[0]}`); |
31 |
throw new Error(`JS Warning detected: ${args[0]}`); |
| 32 |
} |
32 |
} |
| 33 |
}; |
33 |
}; |
|
|
34 |
win.console.log = (...args) => { |
| 35 |
if (args[0] && typeof args[0] === "string") { |
| 36 |
if (args[0].match(/DataTables warning: /)) { |
| 37 |
throw new Error( |
| 38 |
`DataTables warning detected in log: ${args[0]}` |
| 39 |
); |
| 40 |
} |
| 41 |
console.log(args[0]); |
| 42 |
} |
| 43 |
}; |
| 34 |
}); |
44 |
}); |
| 35 |
|
45 |
|
| 36 |
function get_fallback_login_value(param) { |
46 |
function get_fallback_login_value(param) { |
| 37 |
- |
|
|