remove newline, not add it

This commit is contained in:
Girish Ramakrishnan 2016-08-20 01:12:11 -07:00
parent 5ab6a87a76
commit 2ac37367ce
1 changed files with 1 additions and 2 deletions

View File

@ -118,8 +118,7 @@ describe('Application life cycle test', function () {
browser.findElement(by.xpath('//div[text()="Add Key"]')).click(); browser.findElement(by.xpath('//div[text()="Add Key"]')).click();
browser.findElement(by.id('title')).sendKeys('testkey'); browser.findElement(by.id('title')).sendKeys('testkey');
browser.findElement(by.id('content')).sendKeys(publicKey); browser.findElement(by.id('content')).sendKeys(publicKey.trim()); // #3480
browser.findElement(by.id('content')).sendKeys('\n'); // #3480
browser.findElement(by.xpath('//button[contains(text(), "Add Key")]')).click(); 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(); }); browser.wait(until.elementLocated(by.xpath('//p[contains(text(), "added successfully!")]')), TIMEOUT).then(function () { done(); });
}); });