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

464 weergaven
Naar het eerste ongelezen bericht

Jason Harrison

ongelezen,
20 apr 2017, 16:41:3120-04-2017
aan 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

ongelezen,
20 apr 2017, 16:57:5920-04-2017
aan 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.
Allen beantwoorden
Auteur beantwoorden
Doorsturen
0 nieuwe berichten