|
Lines 24-29
Link Here
|
| 24 |
// -- This will overwrite an existing command -- |
24 |
// -- This will overwrite an existing command -- |
| 25 |
// Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... }) |
25 |
// Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... }) |
| 26 |
|
26 |
|
|
|
27 |
// Error on JS warnings |
| 28 |
Cypress.on("window:before:load", win => { |
| 29 |
win.console.warn = (...args) => { |
| 30 |
if (args[0] && typeof args[0] === "string") { |
| 31 |
throw new Error(`JS Warning detected: ${args[0]}`); |
| 32 |
} |
| 33 |
}; |
| 34 |
}); |
| 35 |
|
| 27 |
function get_fallback_login_value(param) { |
36 |
function get_fallback_login_value(param) { |
| 28 |
var env_var = param == "username" ? "KOHA_USER" : "KOHA_PASS"; |
37 |
var env_var = param == "username" ? "KOHA_USER" : "KOHA_PASS"; |
| 29 |
|
38 |
|
| 30 |
- |
|
|