Skip to content

Custom jasmine3 async matchers for writing cleaner e2e tests with protractor

Notifications You must be signed in to change notification settings

tepez/jasmine-protractor-matchers

Repository files navigation

jasmine-protractor-matchers

Custom jasmine3 async matchers for writing cleaner e2e tests with protractor

npm version Build Status

Install

npm install --save @tepez/jasmine-protractor-matchers

Usage

Javascript

const matchers = require('@tepez/jasmine-protractor-matchers');

beforeEach(() => {
    jasmine.addAsyncMatchers(matchers);
});

Typescript

import {matchers} from '@tepez/jasmine-protractor-matchers'

beforeEach(() => {
    jasmine.addAsyncMatchers(matchers);
});

it('should be displayed', async () => {
   await expectAsync($('#element')).toBeDisplayed(); 
});

About

Custom jasmine3 async matchers for writing cleaner e2e tests with protractor

Resources

Stars

Watchers

Forks

Packages

No packages published