I have been writing some automation test scripts for a mobile application. Thus far my tests are very basic, I am struggling to know exactly what to test.
An example of a test I have written: Enter valid login credentials > click submit button > (if element on new page is visible) > pass else fail
So to test a click through I am just checking if an element on the newly loaded page is visible.
I am guessing this is very bad practice. Should I be testing server responses or something else? what exactly should I test to determine success in similar scenarios.