|
1 | 1 | 'use strict'; // necessary for es6 output in node
|
2 | 2 |
|
3 | 3 | import { browser, element, by } from 'protractor/globals';
|
4 |
| -import { sendKeys } from '../protractor-helpers'; |
5 | 4 |
|
6 | 5 | describe('Router', function () {
|
7 | 6 |
|
@@ -85,7 +84,7 @@ describe('Router', function () {
|
85 | 84 | expect(page.heroDetail.isPresent()).toBe(true, 'should be able to see crisis detail');
|
86 | 85 | expect(page.heroDetailTitle.getText()).toContain(heroText);
|
87 | 86 | let inputEle = page.heroDetail.element(by.css('input'));
|
88 |
| - return sendKeys(inputEle, '-foo'); |
| 87 | + inputEle.sendKeys('-foo'); |
89 | 88 | }).then(function() {
|
90 | 89 | expect(page.heroDetailTitle.getText()).toContain(heroText + '-foo');
|
91 | 90 | let buttonEle = page.heroDetail.element(by.css('button'));
|
@@ -113,7 +112,7 @@ describe('Router', function () {
|
113 | 112 | expect(page.crisisDetail.isPresent()).toBe(true, 'should be able to see crisis detail');
|
114 | 113 | expect(page.crisisDetailTitle.getText()).toContain(crisisText);
|
115 | 114 | let inputEle = page.crisisDetail.element(by.css('input'));
|
116 |
| - return sendKeys(inputEle, '-foo'); |
| 115 | + inputEle.sendKeys('-foo'); |
117 | 116 | }).then(function () {
|
118 | 117 | expect(page.crisisDetailTitle.getText()).toContain(crisisText + '-foo');
|
119 | 118 | let buttonEle = page.crisisDetail.element(by.cssContainingText('button', shouldSave ? 'Save' : 'Cancel'));
|
|
0 commit comments