fix ie e2e tests
parent
42716e71aa
commit
e3000da5d0
|
@ -19,7 +19,7 @@ exports.config = {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mochaOpts: {
|
mochaOpts: {
|
||||||
timeout: 30000,
|
timeout: 45000,
|
||||||
compilers: 'js:babel/register'
|
compilers: 'js:babel/register'
|
||||||
},
|
},
|
||||||
capabilities: {
|
capabilities: {
|
||||||
|
|
|
@ -122,7 +122,7 @@ describe('auth', function() {
|
||||||
|
|
||||||
$('.lightbox-generic-success .button-green').click();
|
$('.lightbox-generic-success .button-green').click();
|
||||||
|
|
||||||
expect(utils.lightbox.close('.lightbox-generic-success')).to.be.eventually.equal(true);
|
await utils.lightbox.close('.lightbox-generic-success');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -146,7 +146,6 @@ describe('auth', function() {
|
||||||
|
|
||||||
utils.common.takeScreenshot("auth", "delete-account");
|
utils.common.takeScreenshot("auth", "delete-account");
|
||||||
|
|
||||||
$('#unsuscribe').click();
|
|
||||||
$('.lightbox-delete-account .button-green').click();
|
$('.lightbox-delete-account .button-green').click();
|
||||||
|
|
||||||
expect(browser.getCurrentUrl()).to.be.eventually.equal(browser.params.glob.host + 'login');
|
expect(browser.getCurrentUrl()).to.be.eventually.equal(browser.params.glob.host + 'login');
|
||||||
|
|
|
@ -51,7 +51,7 @@ describe('custom-fields', function() {
|
||||||
expect(utils.notifications.success.open()).to.be.eventually.true;
|
expect(utils.notifications.success.open()).to.be.eventually.true;
|
||||||
});
|
});
|
||||||
|
|
||||||
it('drag', async function() {
|
utils.common.browserSkip(['firefox', 'internet explorer'], 'drag', async function() {
|
||||||
let nameOld = await customFieldsHelper.getName(typeIndex, 0);
|
let nameOld = await customFieldsHelper.getName(typeIndex, 0);
|
||||||
|
|
||||||
await customFieldsHelper.drag(typeIndex, 0, 1);
|
await customFieldsHelper.drag(typeIndex, 0, 1);
|
||||||
|
@ -109,7 +109,7 @@ describe('custom-fields', function() {
|
||||||
expect(utils.notifications.success.open()).to.be.eventually.true;
|
expect(utils.notifications.success.open()).to.be.eventually.true;
|
||||||
});
|
});
|
||||||
|
|
||||||
it('drag', async function() {
|
utils.common.browserSkip(['firefox', 'internet explorer'], 'drag', async function() {
|
||||||
let nameOld = await customFieldsHelper.getName(typeIndex, 0);
|
let nameOld = await customFieldsHelper.getName(typeIndex, 0);
|
||||||
|
|
||||||
await customFieldsHelper.drag(typeIndex, 0, 1);
|
await customFieldsHelper.drag(typeIndex, 0, 1);
|
||||||
|
@ -167,7 +167,7 @@ describe('custom-fields', function() {
|
||||||
expect(utils.notifications.success.open()).to.be.eventually.true;
|
expect(utils.notifications.success.open()).to.be.eventually.true;
|
||||||
});
|
});
|
||||||
|
|
||||||
it('drag', async function() {
|
utils.common.browserSkip(['firefox', 'internet explorer'], 'drag', async function() {
|
||||||
let nameOld = await customFieldsHelper.getName(typeIndex, 0);
|
let nameOld = await customFieldsHelper.getName(typeIndex, 0);
|
||||||
|
|
||||||
await customFieldsHelper.drag(typeIndex, 0, 1);
|
await customFieldsHelper.drag(typeIndex, 0, 1);
|
||||||
|
|
|
@ -86,7 +86,7 @@ describe('attributes - points', function() {
|
||||||
expect(newStatuses.indexOf(newStatusName)).to.be.not.equal(-1);
|
expect(newStatuses.indexOf(newStatusName)).to.be.not.equal(-1);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('drag', async function() {
|
utils.common.browserSkip(['firefox', 'internet explorer'], 'drag', async function() {
|
||||||
let section = adminAttributesHelper.getSection(0);
|
let section = adminAttributesHelper.getSection(0);
|
||||||
let rows = section.rows();
|
let rows = section.rows();
|
||||||
let points = await adminAttributesHelper.getPointsNames(section.el);
|
let points = await adminAttributesHelper.getPointsNames(section.el);
|
||||||
|
|
|
@ -84,7 +84,7 @@ describe('attributes - priorities', function() {
|
||||||
expect(newPriorities.indexOf(newPriorityName)).to.be.not.equal(-1);
|
expect(newPriorities.indexOf(newPriorityName)).to.be.not.equal(-1);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('drag', async function() {
|
utils.common.browserSkip(['firefox', 'internet explorer'], 'drag', async function() {
|
||||||
let section = adminAttributesHelper.getSection(0);
|
let section = adminAttributesHelper.getSection(0);
|
||||||
let rows = section.rows();
|
let rows = section.rows();
|
||||||
let priorities = await adminAttributesHelper.getGenericNames(section.el);
|
let priorities = await adminAttributesHelper.getGenericNames(section.el);
|
||||||
|
|
|
@ -84,7 +84,7 @@ describe('attributes - severities', function() {
|
||||||
expect(newObjs.indexOf(newName)).to.be.not.equal(-1);
|
expect(newObjs.indexOf(newName)).to.be.not.equal(-1);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('drag', async function() {
|
utils.common.browserSkip(['firefox', 'internet explorer'], 'drag', async function() {
|
||||||
let section = adminAttributesHelper.getSection(0);
|
let section = adminAttributesHelper.getSection(0);
|
||||||
let rows = section.rows();
|
let rows = section.rows();
|
||||||
let objs = await adminAttributesHelper.getGenericNames(section.el);
|
let objs = await adminAttributesHelper.getGenericNames(section.el);
|
||||||
|
|
|
@ -110,7 +110,7 @@ describe('attributes - status', function() {
|
||||||
expect(newStatuses.indexOf(newStatusName)).to.be.not.equal(-1);
|
expect(newStatuses.indexOf(newStatusName)).to.be.not.equal(-1);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('drag', async function() {
|
utils.common.browserSkip(['firefox', 'internet explorer'], 'drag', async function() {
|
||||||
let section = adminAttributesHelper.getSection(0);
|
let section = adminAttributesHelper.getSection(0);
|
||||||
let rows = section.rows();
|
let rows = section.rows();
|
||||||
let statuses = await adminAttributesHelper.getStatusNames(section.el);
|
let statuses = await adminAttributesHelper.getStatusNames(section.el);
|
||||||
|
|
|
@ -84,7 +84,7 @@ describe('attributes - types', function() {
|
||||||
expect(newObjs.indexOf(newName)).to.be.not.equal(-1);
|
expect(newObjs.indexOf(newName)).to.be.not.equal(-1);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('drag', async function() {
|
utils.common.browserSkip(['firefox', 'internet explorer'], 'drag', async function() {
|
||||||
let section = adminAttributesHelper.getSection(0);
|
let section = adminAttributesHelper.getSection(0);
|
||||||
let rows = section.rows();
|
let rows = section.rows();
|
||||||
let objs = await adminAttributesHelper.getGenericNames(section.el);
|
let objs = await adminAttributesHelper.getGenericNames(section.el);
|
||||||
|
|
|
@ -126,16 +126,16 @@ describe('admin - members', function() {
|
||||||
isAdmin = await adminMembershipsHelper.isAdmin(member);
|
isAdmin = await adminMembershipsHelper.isAdmin(member);
|
||||||
|
|
||||||
expect(isAdmin).not.to.be.true;
|
expect(isAdmin).not.to.be.true;
|
||||||
|
} else {
|
||||||
|
adminMembershipsHelper.toggleAdmin(member);
|
||||||
|
|
||||||
|
await utils.notifications.success.open();
|
||||||
|
|
||||||
|
isAdmin = await adminMembershipsHelper.isAdmin(member);
|
||||||
|
|
||||||
|
expect(isAdmin).to.be.true;
|
||||||
}
|
}
|
||||||
|
|
||||||
adminMembershipsHelper.toggleAdmin(member);
|
|
||||||
|
|
||||||
await utils.notifications.success.open();
|
|
||||||
|
|
||||||
isAdmin = await adminMembershipsHelper.isAdmin(member);
|
|
||||||
|
|
||||||
expect(isAdmin).to.be.true;
|
|
||||||
|
|
||||||
await utils.notifications.success.close();
|
await utils.notifications.success.close();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -289,7 +289,7 @@ describe('backlog', function() {
|
||||||
expect(sprintRefs.indexOf(draggedRef)).to.be.not.equal(-1);
|
expect(sprintRefs.indexOf(draggedRef)).to.be.not.equal(-1);
|
||||||
});
|
});
|
||||||
|
|
||||||
utils.common.browserSkip('firefox', 'reorder milestone us', async function() {
|
utils.common.browserSkip(['firefox', 'internet explorer'], 'reorder milestone us', async function() {
|
||||||
let sprint = backlogHelper.sprints().get(0);
|
let sprint = backlogHelper.sprints().get(0);
|
||||||
let dragableElements = backlogHelper.getSprintUsertories(sprint);
|
let dragableElements = backlogHelper.getSprintUsertories(sprint);
|
||||||
|
|
||||||
|
@ -304,7 +304,7 @@ describe('backlog', function() {
|
||||||
expect(firstElementRef).to.be.equal(firstElementRef);
|
expect(firstElementRef).to.be.equal(firstElementRef);
|
||||||
});
|
});
|
||||||
|
|
||||||
utils.common.browserSkip('firefox', 'drag us from milestone to milestone', async function() {
|
utils.common.browserSkip(['firefox', 'internet explorer'], 'drag us from milestone to milestone', async function() {
|
||||||
let sprint1 = backlogHelper.sprints().get(0);
|
let sprint1 = backlogHelper.sprints().get(0);
|
||||||
let sprint2 = backlogHelper.sprints().get(1);
|
let sprint2 = backlogHelper.sprints().get(1);
|
||||||
|
|
||||||
|
|
|
@ -41,7 +41,7 @@ describe('user profile', function() {
|
||||||
expect(contactsCount).to.be.above(0);
|
expect(contactsCount).to.be.above(0);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('edit profile hover', async function() {
|
it.browserSkip('internet explorer', 'edit profile hover', async function() {
|
||||||
let userImage = $('.profile-image-wrapper');
|
let userImage = $('.profile-image-wrapper');
|
||||||
|
|
||||||
await browser.actions().mouseMove(userImage).perform();
|
await browser.actions().mouseMove(userImage).perform();
|
||||||
|
|
|
@ -33,10 +33,18 @@ common.isBrowser = async function(browserName) {
|
||||||
};
|
};
|
||||||
|
|
||||||
common.browserSkip = function(browserName, name, fn) {
|
common.browserSkip = function(browserName, name, fn) {
|
||||||
if (browser.browserName !== browserName) {
|
if( typeof browserName === 'string') {
|
||||||
return it.call(this, name, fn);
|
if (browser.browserName !== browserName) {
|
||||||
|
return it.call(this, name, fn);
|
||||||
|
} else {
|
||||||
|
return it.skip.call(this, name, fn);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
return it.skip.call(this, name, fn);
|
if (browserName.indexOf(browser.browserName) === -1) {
|
||||||
|
return it.call(this, name, fn);
|
||||||
|
} else {
|
||||||
|
return it.skip.call(this, name, fn);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ helper.tagsTesting = async function() {
|
||||||
let tagsText = await tagsHelper.getTagsText();
|
let tagsText = await tagsHelper.getTagsText();
|
||||||
await tagsHelper.clearTags();
|
await tagsHelper.clearTags();
|
||||||
let date = Date.now();
|
let date = Date.now();
|
||||||
let tags = [1, 2, 3, 4, 5].map((i) => date + "-" + i);
|
let tags = [1, 2, 3].map((i) => date + "-" + i);
|
||||||
tagsHelper.addTags(tags);
|
tagsHelper.addTags(tags);
|
||||||
|
|
||||||
let newtagsText = await tagsHelper.getTagsText();
|
let newtagsText = await tagsHelper.getTagsText();
|
||||||
|
|
Loading…
Reference in New Issue