who knows Protractor, why does this test fail with ScriptTimeoutError?
it('desc', async () => {
loginPage.navigateTo();
loginPage.getFormLoginInput().sendKeys('user');
loginPage.getFormPasswordInput().sendKeys('password');
await loginPage.geFormSubmit().click();
expect(element.all(by.css('div')).count()).toBeGreaterThan(0);
});
but this works
it('desc', async () => {
loginPage.navigateTo();
expect(element.all(by.css('div')).count()).toBeGreaterThan(0);
});