diff --git a/project-manager/e2e/example/example.e2e-spec.ts b/project-manager/e2e/example/example.e2e-spec.ts index fe2b630..09f2496 100644 --- a/project-manager/e2e/example/example.e2e-spec.ts +++ b/project-manager/e2e/example/example.e2e-spec.ts @@ -7,13 +7,13 @@ describe('angularjs homepage todo list', function() { element(by.model('todoList.todoText')).sendKeys('write first protractor test'); element(by.css('[value="add"]')).click(); - var todoList = element.all(by.repeater('todo in todoList.todos')); + let todoList = element.all(by.repeater('todo in todoList.todos')); expect(todoList.count()).toEqual(3); expect(todoList.get(2).getText()).toEqual('write first protractor test'); // You wrote your first test, cross it off the list todoList.get(2).element(by.css('input')).click(); - var completedAmount = element.all(by.css('.done-true')); + let completedAmount = element.all(by.css('.done-true')); expect(completedAmount.count()).toEqual(2); }); }); diff --git a/project-manager/e2e/login/login.e2e-spec.ts b/project-manager/e2e/login/login.e2e-spec.ts new file mode 100644 index 0000000..0e69e28 --- /dev/null +++ b/project-manager/e2e/login/login.e2e-spec.ts @@ -0,0 +1,9 @@ +import {browser, element, by} from 'protractor' + +describe('Login', function() { + + it('should be redirected after login', function() { + browser.get('/'); + }); + +}); diff --git a/project-manager/e2e/tsconfig.e2e.json b/project-manager/e2e/tsconfig.e2e.json index 83ca6b0..ac7a373 100644 --- a/project-manager/e2e/tsconfig.e2e.json +++ b/project-manager/e2e/tsconfig.e2e.json @@ -3,7 +3,7 @@ "compilerOptions": { "outDir": "../out-tsc/e2e", "module": "commonjs", - "target": "es6", + "target": "es5", "types":[ "jasmine", "node"