I think the best approach is to blend both with a leaning towards emulating how the user interacts with the thing you’re testing.
We largely cover four areas when testing:
do certain elements show/hide on the front end (e.g. how the user interacts with the app)
certain internal changes, state, functions are fired
API calls being made
the interactivity between components.
Oh and we’re also looking to build out a suite of visual regression testing. This approach physically interacts with the app/site/whatever and then matches screenshots to see if there have been negative/unexpected changes
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I think the best approach is to blend both with a leaning towards emulating how the user interacts with the thing you’re testing.
We largely cover four areas when testing:
Oh and we’re also looking to build out a suite of visual regression testing. This approach physically interacts with the app/site/whatever and then matches screenshots to see if there have been negative/unexpected changes