fix custom-fields e2e test

stable
Juanfran 2015-09-21 14:54:19 +02:00
parent bb2620dddd
commit ac2db961f8
4 changed files with 22 additions and 14 deletions

View File

@ -42,6 +42,7 @@ describe('Issue detail', async function(){
await utils.common.takeScreenshot("issues", "detail updated"); await utils.common.takeScreenshot("issues", "detail updated");
}); });
describe('delete & redirect', function() {
it('delete', utils.detail.deleteTesting); it('delete', utils.detail.deleteTesting);
it('redirected', async function (){ it('redirected', async function (){
@ -49,3 +50,4 @@ describe('Issue detail', async function(){
expect(url).not.to.be.equal(issueUrl); expect(url).not.to.be.equal(issueUrl);
}); });
}); });
});

View File

@ -57,11 +57,12 @@ describe('Task detail', function(){
await utils.common.takeScreenshot("tasks", "detail updated"); await utils.common.takeScreenshot("tasks", "detail updated");
}); });
describe('delete & redirect', function() {
it('delete', utils.detail.deleteTesting); it('delete', utils.detail.deleteTesting);
it('redirected', async function (){ it('redirected', async function (){
let url = await browser.getCurrentUrl(); let url = await browser.getCurrentUrl();
expect(url).not.to.be.equal(taskUrl); expect(url).not.to.be.equal(taskUrl);
}); });
});
}) });

View File

@ -105,10 +105,12 @@ describe('User story detail', function(){
await utils.common.takeScreenshot("user-stories", "detail updated"); await utils.common.takeScreenshot("user-stories", "detail updated");
}); });
describe('delete & redirect', function() {
it('delete', utils.detail.deleteTesting); it('delete', utils.detail.deleteTesting);
it('redirected', async function (){ it('redirected', async function (){
let url = await browser.getCurrentUrl(); let url = await browser.getCurrentUrl();
expect(url).not.to.be.equal(usUrl); expect(url).not.to.be.equal(usUrl);
}); });
});
}) })

View File

@ -189,6 +189,9 @@ helper.deleteTesting = async function() {
helper.watchersTesting = async function() { helper.watchersTesting = async function() {
let watchersHelper = detailHelper.watchers(); let watchersHelper = detailHelper.watchers();
await watchersHelper.removeAllWathchers();
let watchersLightboxHelper = detailHelper.watchersLightbox(); let watchersLightboxHelper = detailHelper.watchersLightbox();
let userNames = await watchersHelper.getWatchersUserNames(); let userNames = await watchersHelper.getWatchersUserNames();