Fixing userProfile e2e tests
parent
0b31cd0106
commit
3f09356f2e
|
@ -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);
|
||||
});
|
||||
|
||||
});
|
||||
|
|
|
@ -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');
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue