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.
Add a method to the framework adapters interface to run async code before each test #3894
Closed
Description
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);
});
}
}