My test:
it(\'should allow login\', function() { browser.get(\'index.html\'); $(\'#username\').sendKeys(\'administrator\'); $(\'#password\').sendKeys(\'pa
Using the latest Protractor build, you can shorten the above answer to the following:
expect(element(by.css('#logout')).isPresent()).toBeTruthy();
This way you do not have to perform the browser.wait and you reduce the number of calls to isElementPresent.