Fixing userProfile e2e tests

stable
Alejandro Alonso 2017-02-23 14:39:52 +01:00
parent 0b31cd0106
commit 3f09356f2e
2 changed files with 5 additions and 3 deletions

View File

@ -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);
});
});

View File

@ -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');
});