Skip to content
This repository was 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.

@sjelin sjelin merged commit d868ab9 into angular:beta Jan 18, 2017
sjelin added a commit that referenced this pull request Jan 18, 2017
@sjelin sjelin deleted the supportAfterEach branch January 18, 2017 21:35
igniteram pushed a commit to igniteram/protractor that referenced this pull request Feb 21, 2017
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants