Skip to content

Update for Protractor v3.x.x #22

@michaelvashchinsky

Description

@michaelvashchinsky

Hello.

Is it possible to update the examples to Protractor v3.x.x?

For example, the code in ScreenshotReporter does not work there.

Although I haven't tested it thoroughly, those changed made it work:

// var originalAddMatcherResult = jasmine.Spec.prototype. addMatcherResult;
var originalAddMatcherResult = jasmine.Spec.prototype.addExpectationResult;
jasmine.Spec.prototype.addExpectationResult = function() {
    ++index;
        // if (!arguments[0].passed()) {
    if (!arguments[1].passed) {
        screenshot(this.description, index);
    }
    return originalAddMatcherResult.apply(this, arguments);
};

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions