Electron + Spectron + WebdriverIO + Chai: Why won't these chai tests fail?

411 views
Skip to first unread message

Jason Harrison

unread,
Apr 20, 2017, 4:41:31 PM4/20/17
to Chai.js
I've posted a question on stackoverflow.com hoping that someone will be able to help figure out why tests using chai don't fail when testing an Electron app using Spectron and WebdriverIO.
Perhaps someone reading this group can help?

Jason Harrison

unread,
Apr 20, 2017, 4:57:59 PM4/20/17
to Chai.js

you will see that you need to return the promise from each of the tests:

    it('tests the page title', function () {
        return page.getApplicationTitle().should.eventually.equal("NO WAY");
    });

If you do that, then the chai test is actually correctly evaluated.
Reply all
Reply to author
Forward
0 new messages