locate add paragraph button correctly after https://github.com/apache/zeppelin/pull/2569

This commit is contained in:
Lee moon soo 2017-10-05 14:43:27 -07:00
parent 300c9ef162
commit 55ed4041c9

View file

@ -99,7 +99,7 @@ describe('Search block e2e Test', function() {
waitVisibility(element(by.repeater('currentParagraph in note.paragraphs')))
browser.switchTo().activeElement().sendKeys(testData.textInFirstP)
let addBelow = element(
by.xpath('//div[@class="new-paragraph" and @ng-click="insertNew(\'below\');"]'))
by.xpath('//div[@class="new-paragraph last-paragraph" and @ng-click="insertNew(\'below\');"]'))
clickAndWait(addBelow)
browser.switchTo().activeElement().sendKeys(testData.textInSecondP)
}
@ -123,7 +123,6 @@ describe('Search block e2e Test', function() {
}
/*Tests*/
it('shortcut works', function() {
waitVisibility(element(by.repeater('currentParagraph in note.paragraphs')))
openSearchBoxByShortcut()