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

Add a method to the framework adapters interface to run async code before each test #3894

Closed
juliemr opened this issue Dec 29, 2016 · 0 comments

Comments

@juliemr
Copy link
Member

juliemr commented Dec 29, 2016

This will be used for things such as restarting the browser between tests. To avoid relying on control flow, we need to be able to run asynchronous things (like waiting for the new browser instance to start up).

This will look something like:

JasmineAdapter {
  addRunBeforeFunction(fn) {
    jasmine.beforeEach((done) => {
      fn().then(done);
    });
  }
}
sjelin added a commit to sjelin/protractor that referenced this issue Jan 19, 2017
sjelin added a commit to sjelin/protractor that referenced this issue Jan 19, 2017
sjelin added a commit to sjelin/protractor that referenced this issue Jan 20, 2017
sjelin added a commit to sjelin/protractor that referenced this issue Jan 20, 2017
@sjelin sjelin closed this as completed in 6c3be8c Jan 27, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants