Global set ember alerts to closeAfter infinite in tests #512
Labels
Irrelevant without EmberJS
Nice to have
Would be nice to have but not a priority
plan
needs to be planned
In #497, we wrote a test, that checks if the backend sends an alert for not valid model in create. For no reason, ember displays alerts only one milisec and because of that, the assertion for the text in the alert is always false. Because of that, we've set the closeAfter for the error alert in the
person-new.js
file to infinite (closeAfter: null makes this). This is done here: https://github.com/puzzle/skills/blob/feature/497-email-regex/frontend/app/components/person-new.js#L103.It would be nice, if we can set the closeAfter for tests to null globally, becauase we want to test this maybe at another location. Here is an example from someone: adopted-ember-addons/ember-notify#88 (comment)
The text was updated successfully, but these errors were encountered: