From 3f09356f2ea500be4bd5abe4fa7b5674bf4adc32 Mon Sep 17 00:00:00 2001 From: Alejandro Alonso Date: Thu, 23 Feb 2017 14:39:52 +0100 Subject: [PATCH] Fixing userProfile e2e tests --- e2e/suites/user-profile/user-profile-votes.e2e.js | 6 ++++-- e2e/suites/user-profile/user-profile-watched.e2e.js | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/e2e/suites/user-profile/user-profile-votes.e2e.js b/e2e/suites/user-profile/user-profile-votes.e2e.js index 115c07ee..24695a48 100644 --- a/e2e/suites/user-profile/user-profile-votes.e2e.js +++ b/e2e/suites/user-profile/user-profile-votes.e2e.js @@ -137,6 +137,8 @@ describe('user profile - votes', function() { let endTotal = await $$('div[infinite-scroll] > div').count(); + console.log(startTotal, endTotal); + let hasMoreItems = startTotal < endTotal; expect(hasMoreItems).to.be.equal(true); @@ -205,9 +207,9 @@ describe('user profile - votes', function() { await utils.common.clear($('div.searchbox > input')); await htmlChanges(); - filteredItems = await $$('div[infinite-scroll] > div').count(); + let unfilteredItems = await $$('div[infinite-scroll] > div').count(); - expect(allItems).to.be.equal(filteredItems); + expect(unfilteredItems).to.be.not.equal(filteredItems); }); }); diff --git a/e2e/suites/user-profile/user-profile-watched.e2e.js b/e2e/suites/user-profile/user-profile-watched.e2e.js index 195a8960..5de5b4bc 100644 --- a/e2e/suites/user-profile/user-profile-watched.e2e.js +++ b/e2e/suites/user-profile/user-profile-watched.e2e.js @@ -16,7 +16,7 @@ describe('user profile - watched', function() { $$('.tab').get(3).click(); - await helper.waitLoader(); + await browser.waitForAngular(); utils.common.takeScreenshot('user-profile', 'current-user-watched'); });