Fixing issues e2e tests
parent
7a00f04f4a
commit
e2ed2ff7ae
|
@ -43,24 +43,16 @@ module.exports = function(name, counter) {
|
|||
});
|
||||
|
||||
it('save custom filters', async () => {
|
||||
await filterHelper.openCustomFiltersCategory()
|
||||
let len = await counter();
|
||||
let customFiltersSize = await filterHelper.getCustomFilters().count();
|
||||
|
||||
await filterHelper.firterByCategoryWithContent();
|
||||
await filterHelper.saveFilter("custom-filter");
|
||||
await filterHelper.clearFilters();
|
||||
await filterHelper.firterByLastCustomFilter();
|
||||
|
||||
await browser.sleep(200);
|
||||
|
||||
let newLength = await counter();
|
||||
let newCustomFiltersSize = await filterHelper.getCustomFilters().count();
|
||||
|
||||
expect(newLength).to.be.below(len);
|
||||
expect(newCustomFiltersSize).to.be.equal(customFiltersSize + 1);
|
||||
|
||||
await filterHelper.clearFilters();
|
||||
});
|
||||
|
||||
it('remove custom filters', async () => {
|
||||
|
|
|
@ -13,7 +13,7 @@ describe('issues list', function() {
|
|||
before(async function() {
|
||||
browser.get(browser.params.glob.host + 'project/project-3/issues');
|
||||
|
||||
await utils.common.waitLoader();
|
||||
await browser.waitForAngular();
|
||||
|
||||
utils.common.takeScreenshot('issues', 'issues');
|
||||
});
|
||||
|
@ -95,13 +95,10 @@ describe('issues list', function() {
|
|||
|
||||
// test every column order
|
||||
for(let i = 0; i < 7; i++) {
|
||||
let htmlChanges = await utils.common.outerHtmlChanges(table);
|
||||
issuesHelper.clickColumn(i);
|
||||
await htmlChanges();
|
||||
|
||||
htmlChanges = await utils.common.outerHtmlChanges(table);
|
||||
await browser.waitForAngular();
|
||||
issuesHelper.clickColumn(i);
|
||||
await htmlChanges();
|
||||
await browser.waitForAngular();
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue