Skip to content

← All questions

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

Asked 15,220 views4 answers

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?

asked by Vikram Rajagopal1,240 ·

4 answers

Know the answer?

Reviewed before it appears. Wrap commands and output in triple backticks and they will render as a code block.

Have a different question? Ask it.

Related