Once an automation test is created, how do I test it and make sure the test does what its supposed to do? I can easily test the scenarios where test passes, but how to go about the ones that fails due to issues in site? Issues such as - an element missing, click not working etc. All I could think was to mock the HTML to simulate the condition to test and run the test in that local html.
Does any one else have better idea?