Skip to content

Assert.equal not returning properly #89

@fabioel

Description

@fabioel

Hi @DavertMik!

Since updating to v0.3.0 I am having problems with assert.equal when the assert fails:

Here a little code snippet to show what I mean:

Before((I) => {
I.amOnPage('/');
});

 Scenario.only(
   'Navigating to prev week check date picker value',
    function* prev(I, actionBarTop, appointmentPage) {
    assert.equal(true, false);
});
Navigation --
 Navigating to prev week check date picker value
 • I am on page "https://www.test.com"

and after that the test just finishes, without failing properly

On the otherhand with assert.equal(true, true) the tests passes

Is there some problem with assert?

UPDATE:
I have got the impression that is has to do with your new handling of errors in the scenario.js:
Line 22: recorder.add(() => done(err), true);

Might be the issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions