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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jasmine-protractor-matchers

Custom jasmine3 async matchers for writing cleaner e2e tests with protractor

npm version

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