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

Function proceedSeeCheckbox

lib/helper/WebDriver.js:3191–3201  ·  view source on GitHub ↗
(assertType, field)

Source from the content-addressed store, hash-verified

3189}
3190
3191async function proceedSeeCheckbox(assertType, field) {
3192 const res = await findFields.call(this, field)
3193 assertElementExists(res, field, 'Field')
3194
3195 const selected = await forEachAsync(res, async el => {
3196 const elementId = getElementId(el)
3197 return isElementChecked(this.browser, elementId)
3198 })
3199
3200 return truth(`checkable field "${field}"`, 'to be checked')[assertType](selected)
3201}
3202
3203async function getElementTextAttributes(element) {
3204 const elementId = getElementId(element)

Callers

nothing calls this directly

Calls 5

truthFunction · 0.90
forEachAsyncFunction · 0.85
getElementIdFunction · 0.85
isElementCheckedFunction · 0.85
assertElementExistsFunction · 0.70

Tested by

no test coverage detected