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) {
var self = this;
browser.wait(function () {
var textField = self.getItemInputField();
textField.sendKeys(itemText);
textField.sendKeys(webdriver.Key.ENTER);
textField.sendKeys(itemText, webdriver.Key.ENTER);
return self.getVisibleLabelText()
.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