Then the "item" checkbox

This page is the index for the checkbox assertion family in the field-steps group. Webship-js provides four distinct phrasings for asserting the checked or unchecked state of a checkbox, allowing you to choose the wording that best fits your scenario's natural language. All four phrasings accept a CSS selector string that identifies the checkbox element on the page.

The four child steps cover two structural variations: selector first (the "#selector" checkbox ... form) and keyword first (the checkbox "#selector" ... form), and within each variation there is a should be form and an is form. Both variations and both tense forms produce identical assertion behavior - they call Playwright's isChecked() on the located element and fail the step if the result does not match the expected state.

Child steps

Related steps

Back to Field Steps