How to catch ngToast in protractor'e?

I can't check pop-up ngToast. Who as does ? My code:

var HomePage = require('./home.pageObject');

describe('Home Page tests', function () {
 var homePage = new HomePage();
 var EC = protractor.ExpectedConditions;

 beforeEach(function () {
browser.get('/#/');
});

 it('should fail to login', function () {
 var toast = $('.ng-toast');
homePage.signinBtn.click();
 homePage.login('admin', 'Password')
 .then(function () {
 var toast = $('.alert');
 browser.wait(EC.visibilityOf(toast), 3000);
});
});
});
July 2nd 19 at 14:09
0 answer

Find more questions by tags Angular