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

Is there a way to inspect the growl history? #42

Open
aguynamedben opened this issue Jan 19, 2017 · 0 comments
Open

Is there a way to inspect the growl history? #42

aguynamedben opened this issue Jan 19, 2017 · 0 comments

Comments

@aguynamedben
Copy link

Hi, thanks for working on this great, easy-to-use library. I'm grateful for the time you spend on this.

I have a question I couldn't figure out myself from reading the code: Is the history of past growls stored and accessible somewhere in Growl or $.growl? I'm using Capybara/Selenium as a testing framework, and I'd like to introspect the DOM or JavaScript objects to confirm that a growl did appear appropriately to the user. For example, when a user updates an AJAX form, I show a growl that says "Your settings were saved." I want to make sure that message pops up before continuing to check other things on the page.

Because I want growls to disappear, sometimes there's a race condition between the growls disappearing and my test framework looking for the growls on the page (i.e. the growl disappears before my test framework can verifying that it was ever there).

Thanks for any guidance you can provide on this. I'd be great to have a deterministic way to verify that a growl did pop up on the page.

–Ben

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