Closed ratpik closed 11 years ago
So the issue here is that you're trying to navigate to a new page and currently Huxley doesn't support it. We could build this feature though. Normally we set up test pages and don't require navigating from page to page. Does your use case require us to build this feature? We can, but it'll be a little ugly.
Well navigation would be a good feature to have. More importantly, would Huxley work with urls that require authentication? My first use case was to test a new user signup/login flow which requires both authentication and re-direction.
This can all be done via configuration as long as Huxley respects cookie based sessions.
I have to disagree. I tried to add multiple steps to my tests the first time I popped up a script. I was a bit confused by the error, but after some reflection it made sense. I (speaking with limited experience) think I would be hesitant to provide the navigation feature, since doing so kind of attacks the 'soul' of the project.
Huxley is asking you to try to test your components independently, falling closer to unit tests side of things than integration test. Restricting navigation implicitly keep your tests 'more honest'. If anything, I think that it'd be better if Huxley threw a better error upon navigation, since this is probably going to be a common misconception, and the error is a bit unintuitive to understand.
That does make sense. I might have confused Huxley with an integration testing tool as opposed to a unit testing one.
@ratpik I think the difference between "unit testing" and "integration testing" tends to be simply characterized by the size of the unit being tested. I think Huxley probably qualifies as an integration test of the front-end unit of your project. Regardless, I'll make this error message better.
Fixed in bbae0729e527f64eaa2f2656cb1f5346285a7dfe
I am trying to get Huxley to work on a simple login flow where I enter the username/password and the page redirects to a different url after login. While I can capture the screenshots, when I hit q+enter I get the below error. Can I use huxley to test scenarios like these?
Note that Huxley works otherwise when I am testing a single page like the toggle example included.