Commit b2e690ee authored by Sam Saccone's avatar Sam Saccone

tests: Condense key presses into a single action

parent 005b11da
...@@ -233,8 +233,7 @@ module.exports = function Page(browser) { ...@@ -233,8 +233,7 @@ module.exports = function Page(browser) {
var self = this; var self = this;
browser.wait(function () { browser.wait(function () {
var textField = self.getItemInputField(); var textField = self.getItemInputField();
textField.sendKeys(itemText); textField.sendKeys(itemText, webdriver.Key.ENTER);
textField.sendKeys(webdriver.Key.ENTER);
return self.getVisibleLabelText() return self.getVisibleLabelText()
.then(function (labels) { .then(function (labels) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment