OzFramework / oz

Oz is a behavioral web-ui testing framework developed to reduce test maintenance by using a predictive model rather than a scriptive model when writing tests.
Apache License 2.0
23 stars 7 forks source link

Router should throw a different error when page hasn't changed at all #151

Open PanoramicPanda opened 5 years ago

PanoramicPanda commented 5 years ago

Router currently throws RuntimeError: ERROR: The Application is on the wrong page! OZ expected that page to be [Page_Y] but found [Page_X]! whenever it lands on the improper page.

While still technically a routing issue, a more verbose/different error should likely be thrown when Page_X is the same page you just tried to leave.

Castone22 commented 5 years ago

Uriah and I were discussing a few things about this.

Essentially a more indepth case is the page doesn't do anything to tell you WHY it failed to navigate away from itself.

One of the lowest hanging fruits would be checking if fields were empty. Potential solutions we discussed: