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.

5.1.0 breaks backwards compatibility with custom frameworks (calling afterEach is now required) #4087

Open
@jan-molak

Description

@jan-molak

Hi @sjelin!

It seems like as of this commit custom frameworks have to call runner.afterEach after every test, even though the documentation states that this will be a requirement starting from Protractor 6.0.0.

We're adding support for this behaviour to Serenity/JS now to allow people to use Protractor 5.1.x, but I suppose the docs should be updated to clearly state that this is now a requirement?


To reproduce the problem, please install a custom framework, such as protractor-cucumber-framework and try to run several test scenarios with restartBrowserBetweenTests set to true.

The browser does not get restarted.

Calling runner.afterEach() after every test solves the issue.

(I see that you've requested support for this in protractor-cucumber-framework/protractor-cucumber-framework#67 by the way).

Best,
Jan

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