Skip to content

Instantly share code, notes, and snippets.

@lydemann
Created July 9, 2018 06:34
Show Gist options
  • Save lydemann/4b0f60c31417ce9cab9e4efa67093e98 to your computer and use it in GitHub Desktop.
Save lydemann/4b0f60c31417ce9cab9e4efa67093e98 to your computer and use it in GitHub Desktop.
import { browser } from 'protractor';
import { AppPage } from './app.po';
describe('todoapp App', () => {
let page: AppPage;
beforeEach(() => {
page = new AppPage();
});
it('should display welcome message', (done) => {
page.navigateTo();
browser.waitForAngular().then(() => {
expect(page.getAmountOfTODOs()).toBe(2);
done();
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment