From 2ac37367ceedfcd8fbce7679f0b34270ba4f6e27 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Sat, 20 Aug 2016 01:12:11 -0700 Subject: [PATCH] remove newline, not add it --- test/test.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/test.js b/test/test.js index ee126ef..a7a6396 100755 --- a/test/test.js +++ b/test/test.js @@ -118,8 +118,7 @@ describe('Application life cycle test', function () { browser.findElement(by.xpath('//div[text()="Add Key"]')).click(); browser.findElement(by.id('title')).sendKeys('testkey'); - browser.findElement(by.id('content')).sendKeys(publicKey); - browser.findElement(by.id('content')).sendKeys('\n'); // #3480 + browser.findElement(by.id('content')).sendKeys(publicKey.trim()); // #3480 browser.findElement(by.xpath('//button[contains(text(), "Add Key")]')).click(); browser.wait(until.elementLocated(by.xpath('//p[contains(text(), "added successfully!")]')), TIMEOUT).then(function () { done(); }); });