@tepez/jasmine-protractor-matchers
TypeScript icon, indicating that this package has built-in type declarations

2.1.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @tepez/jasmine-protractor-matchers

Weekly Downloads

1

Version

2.1.0

License

ISC

Unpacked Size

65.8 kB

Total Files

12

Last publish

Collaborators

  • tomyam1