When I was querying nearby Gym on snapfitness website, it targeted to an HTTP 404 page. As an automation test analyst, I wrote a letter to the webmaster with analysis pointing to backend RESTful API defect and hope it will help :_)
Just FYI, the defect brief description:
Navigate from the homepage of snapfitness to “Find A Gym”
The target URL is https://www.snapfitness.com/
Insert “Lower Hutt” into the blank of “city” and click the first result of “LOWER HUTT”
This click is redirected to https://www.snapfitness.com/lower-hutt
However, this URL leads to 404 page.
After a few seconds trying, guessing: the correct URL might be https://www.snapfitness.com/gyms/lower-hutt. This is verified.
It tests(looks) like a typo in the backend JSON building in the Web API. Which is verified with Postman and the “infoWindow” data field in the JSON return from POST API to “www.snapfitness.com/gyms/getLocations” contains incorrect URL (which would be utilized to composite the click link of Gym places queried from map).
The test screenshot with postman to confirm above root cause guess.
At last, below is the raw information captured from browser during issue.
The error message on this 404 page:
404 PAGE NOT FOUND
The page you’re looking for does not exist or cannot be found at this time. If you feel you reached this page in error, please contact us at email@example.com. Thank you.
Dev Code: objl-0bd08226-2ab2-4fa3-9473906225e76271