Custom jasmine3 async matchers for writing cleaner e2e tests with protractor
npm install --save @tepez/jasmine-protractor-matchers
const matchers = require('@tepez/jasmine-protractor-matchers');
beforeEach(() => {
jasmine.addAsyncMatchers(matchers);
});
import {matchers} from '@tepez/jasmine-protractor-matchers'
beforeEach(() => {
jasmine.addAsyncMatchers(matchers);
});
it('should be displayed', async () => {
await expectAsync($('#element')).toBeDisplayed();
});