added Protractor for end-to-end testing

This commit is contained in:
alecmerdler 2017-06-06 16:03:13 -07:00
parent 0841d2bfb9
commit 31d518f3e1
6 changed files with 524 additions and 145 deletions

View file

@ -0,0 +1,19 @@
import { browser } from 'protractor';
import { appHost } from '../protractor.conf';
describe("sanity test", () => {
beforeEach(() => {
browser.get(appHost);
});
it("loads home view with no AngularJS errors", () => {
browser.manage().logs().get('browser')
.then((browserLog: any) => {
browserLog.forEach((log: any) => {
expect(log.message).not.toContain("angular");
});
});
});
});