From 2e78141ec151635e1363111193e7d5b953e4503c Mon Sep 17 00:00:00 2001 From: Alejandro Alonso Date: Thu, 29 Oct 2015 15:24:31 +0100 Subject: [PATCH] Fixing e2e search tests --- e2e/full/search.e2e.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/e2e/full/search.e2e.js b/e2e/full/search.e2e.js index 8b3da4fc..7e3b86fb 100644 --- a/e2e/full/search.e2e.js +++ b/e2e/full/search.e2e.js @@ -81,16 +81,15 @@ describe('search page', function() { describe('new search', function() { it('change current tab content on typing in the right column', async function() { + let searchTerm = element(by.model('searchTerm')); + await searchTerm.clear(); + let text = await $$('.table-main').get(0).$('a').getText(); let htmlChanges = await utils.common.outerHtmlChanges('.search-result-table-body'); let initialCount = await $$('.table-main').count(); - let searchTerm = element(by.model('searchTerm')); - - await searchTerm.clear(); - await searchTerm.sendKeys(text); await htmlChanges();