From 55ed4041c9e88e570dbff917b0ffe2e3178bd6c5 Mon Sep 17 00:00:00 2001 From: Lee moon soo Date: Thu, 5 Oct 2017 14:43:27 -0700 Subject: [PATCH] locate add paragraph button correctly after https://github.com/apache/zeppelin/pull/2569 --- zeppelin-web/e2e/searchBlock.spec.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/zeppelin-web/e2e/searchBlock.spec.js b/zeppelin-web/e2e/searchBlock.spec.js index 4a0ea48ca37..570673b838e 100644 --- a/zeppelin-web/e2e/searchBlock.spec.js +++ b/zeppelin-web/e2e/searchBlock.spec.js @@ -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()