79631146

Date: 2025-05-20 20:50:38
Score: 2
Natty:
Report link

What if there are multiple controls with text and the app put the text values in the wrong controls?

All of your folks' solutions involve finding ANY target element that has the expected text. But, if your app put the name text into the price column and vice versa, the steps above will not find the bug.

A more correct way to test is to positively identify exactly which field you are targeting AND THEN verify that said field has the correct value (in this case text).

So, consider finding the component by accessibility label or name first and then checking that it has the right text.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): What if the
  • Low reputation (1):
Posted by: gilgamesh82