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.

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

Closed
@juliemr

Description

@juliemr

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);
    });
  }
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions