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

guard-jasmine reports failures when spec passes #129

Closed
cmaujean opened this issue Apr 18, 2013 · 2 comments
Closed

guard-jasmine reports failures when spec passes #129

cmaujean opened this issue Apr 18, 2013 · 2 comments

Comments

@cmaujean
Copy link

            16:09:04 - INFO - Guard::Jasmine starts Unicorn spec server on port 57526 in development environment (coverage off).
            16:09:05 - INFO - Waiting for Jasmine test runner at http://localhost:57526/jasmine
            16:09:18 - INFO - Run all Jasmine suites
            16:09:18 - INFO - Run Jasmine suite at http://localhost:57526/jasmine                16:09:25 - INFO - Finished in 1.03 seconds
            16:09:25 - INFO - setFocus()
            16:09:25 - INFO -   when there is an element on the page with a class of focus_point
            16:09:25 - INFO -     ✘ sets the focus to the element with a focus_point
            16:09:25 - INFO -       ➤ Expected '<input class="focus_point" id="searchbox" name="hoopyfrood" type="text">' to be focused.
            16:09:25 - INFO -       ➤ Passed.
            16:09:25 - INFO -   when there is no element on the page with a class of focus_point
            16:09:25 - INFO -     ✘ sets the focus to the first input on the first form on the page
            16:09:25 - INFO -       ➤ Expected '<input id="searchbox" name="hoopyfrood" type="text">' to be focused.
            16:09:25 - INFO -       ➤ Passed.
            16:09:25 - ERROR - 6 specs, 2 failures
            16:09:25 - INFO - Done.
            16:09:25 - INFO - Guard::Jasmine stops server.

These specs pass when running the server and going to /jasmine And they look like they passed here.

Using jasminerice and guard-jasmine. the spec in question calls loadFixtures in a beforeEach block.

@netzpirat
Copy link
Contributor

That's a known issue with PhantomsJS. See #48 for a failing test script and a workaround.

@cmaujean
Copy link
Author

Thanks!

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

2 participants