Sitelet https://github.com/angular/protractor/issues/3889
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.

Can I use Jest framework to assert? #3889

Description

@Shyam-Chen

Jest seems like Jasmine.

Jest support for testing with promises and async/await.

[...]
  beforeEach(async () => {
    await browser.driver.get('http://localhost:9876/en/home');
  });

  it('should be able to get the text', () => {
    let el = webdriver.findElement(by.css('h2.mdl-color-text--blue-900'));
    expect(el.getText()).toEqual('Home');
  });
[...]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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