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

assert.numberOfElements doesn't increase assertion counter #53

Open
Munter opened this issue Feb 5, 2014 · 1 comment
Open

assert.numberOfElements doesn't increase assertion counter #53

Munter opened this issue Feb 5, 2014 · 1 comment
Assignees

Comments

@Munter
Copy link

Munter commented Feb 5, 2014

Test:

module.exports = {
    'TodoMVC - VanillaJS': function (test) {
        test
            .open('http://todomvc.com/vanilla-examples/vanillajs/')
            .assert.numberOfElements('#todo-list li', 0, 'There should be no todos')
            .done();
    }
};

Command line output:

RUNNING TEST - "TodoMVC - VanillaJS"
▶ OPEN http://todomvc.com/vanilla-examples/vanillajs/
✔ 0 Assertions run
✔ TEST - "TodoMVC - VanillaJS" SUCCEEDED
@asciidisco asciidisco added the bug label Feb 16, 2014
@asciidisco asciidisco self-assigned this Feb 16, 2014
@asciidisco
Copy link
Member

Hmm, seems like a bug that appears when you expect 0 elements & also 0 elements are found.
Investigating further.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants