Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Call a function when an expect fails #224

@yentheo

Description

@yentheo

We want to take a screen shot when there is an expect that fails.

Is there a way to plug in to some sort of onFail event that runs with every 'expectation fail'.

I looked at writing a jasmine reporter. But these only have events that run after a spec is completed (or before). The problem with this is that I could have an expect in the middle of my test, I want to see a screenshot of that moment.

Is something like this possible with the current protractor version?

Thanks in advance!

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