MCPcopy Index your code
hub / github.com/json-editor/json-editor / check

Function check

tests/codeceptjs/editors/array_test.js:576–588  ·  view source on GitHub ↗
(checkboxId, title, infoText)

Source from the content-addressed store, hash-verified

574 I.amOnPage('array-checkboxes-infotext.html')
575
576 function check (checkboxId, title, infoText) {
577 const label = '//label[@for="' + checkboxId + '"]'
578 I.see(title, label)
579 const infoTextIcon = label + '/span[@class="je-infobutton-icon"]'
580
581 if (infoText) {
582 I.seeElement(infoTextIcon)
583 I.moveCursorTo(infoTextIcon)
584 I.see(infoText, label + '//span[@class="je-infobutton-tooltip"]')
585 } else {
586 I.dontSeeElement(infoTextIcon)
587 }
588 }
589
590 check('root0', 'old a')
591 check('root1', 'b')

Callers 1

array_test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected