MCPcopy Index your code
hub / github.com/codeceptjs/CodeceptJS / runLoginFunctionForTest

Function runLoginFunctionForTest

lib/plugin/auth.js:391–396  ·  view source on GitHub ↗
(test)

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 2

includesMethod · 0.80
loginFunctionFunction · 0.70

Tested by

no test coverage detected