Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Acceptance testing #44

Open
jerefrer opened this issue Jul 7, 2014 · 0 comments
Open

Acceptance testing #44

jerefrer opened this issue Jul 7, 2014 · 0 comments

Comments

@jerefrer
Copy link

jerefrer commented Jul 7, 2014

Hi there,

First thanks for this gem, it just magically removed the issues we had about where to put the flash messages across different pages. Just don't put them inside the layout, put them above it ! :)

Then, the one problem I encountered was that a lot of my acceptance tests started to fail because they are relying on the flash message to check if for example a resource has been created, updated, destroyed, or the user has been logged in or out.

One solution I found was not to use use Gritter in the testing environment and fall back to classic flash notices, but then we don't really test the actual behavior of the app,

Another one would be to run those tests with js: true so the Gritter message is actually shown, but this would significantly slow down all those tests.

Yet another one would be not to rely on the flash notices at all in the tests, but then it would be some part of the business logic that would be lost : the fact that the user gets noticed about the result of his actions.

But as you can see none of those solutions is ideal.

So I wondered what you guys do in those cases, and if we could come up with a nice solution to include in the doc for everyone to see.

Cheers !

@jerefrer jerefrer changed the title Acceptance test Acceptance testing Jul 7, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant