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

chore(frameworks): allow frameworks to call afterEach. #3906

Merged
merged 1 commit into from
Jan 18, 2017

Conversation

sjelin
Copy link
Contributor

@sjelin sjelin commented Dec 30, 2016

Follow up to #3893.

Part of #3893

I could have just made it a noop I guess but I think it makes sense to actually use it.

let restartDriver = () => {
browser_.restart();
if (!this.afterEachWasCalled) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe if we name this boolean frameworkUsesAfterEach it would be clearer? I confused myself for a bit thinking we'd need to reset it to false (which we don't, obviously).

@juliemr
Copy link
Member

juliemr commented Jan 18, 2017

LGTM with one consideration.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants