They are shown when you run the tests. Until then they appear as a hidden requirement.
Build a minimal form: a terms checkbox that enables the submit button. You practice controlled checkboxes and values derived from state.
Submit button and the thank-you message.I accept the terms, Submit and Thanks for accepting!, and the message's role="status": the tests use them.Submit button is disabled.Submit shows Thanks for accepting!.Submit.Submit button is disabled.Submit → you see Thanks for accepting!.Accepting or not is a boolean: store it in useState and make the checkbox control it with checked.
To read a checkbox's value in onChange use event.target.checked, not value.
Whether the button is disabled is deduced from that same boolean: it does not need its own state.
checked + onChange).The console is empty
Run your code with Ctrl+S
This console starts empty every time the preview loads. The browser's DevTools console keeps the messages with Preserve log.