Skip to content

← All questions

I do not want healing to rescue a broken locator — I want the test to fail

Example threads. These questions and answers were written by the SDODS team to document real problems and how to fix them. The people named are illustrative, not real users. Questions asked on this site are marked new.

Possibly an unpopular opinion, but: if a developer renames a button and my test still passes, my test did not test anything.

Yesterday a whole feature shipped with the wrong label on the submit button and the suite was green, because healing quietly found it by role. I want the suite to go red on a locator that no longer matches. Is there a switch, or am I holding this wrong?

4 answers

Know the answer?

Wrap commands and output in triple backticks and they will render as a code block.

Checking whether you’re signed in…

Have a different question? Ask it.

Related