(test)
| 389 | }) |
| 390 | |
| 391 | function runLoginFunctionForTest(test) { |
| 392 | if (!suite.tests.includes(test)) return |
| 393 | // let's call this function to ensure that authorization happened |
| 394 | // if no cookies, it will login and save them |
| 395 | loginFunction(name) |
| 396 | } |
| 397 | |
| 398 | // we are in BeforeSuite hook |
| 399 | event.dispatcher.on(event.test.started, runLoginFunctionForTest) |
nothing calls this directly
no test coverage detected