2 ms·
> avoid using “testid” > This way any refactoring work would not require test changes This is the purpose of a testid, your letting people know removing it ca
by jabradoodle 3y ago
> avoid using “testid”
> This way any refactoring work would not require test changes
This is the purpose of a testid, your letting people know removing it can/will break tests.
(Especially e2e tests that might not only be ran by you/ might not live alongside the code)
> and any change of the visible ui / workflow to the user would require an adjustment to the test.
I really don't follow this reasoning; why would I want my tests to fail when the Accept button is renamed to Agree?