Finishing task detail tests
parent
96708f1374
commit
4f35f17ada
|
@ -32,14 +32,14 @@ describe('Issue detail', async function(){
|
|||
|
||||
it('history', utils.detail.historyTesting);
|
||||
|
||||
it('screenshot', async function() {
|
||||
await utils.common.takeScreenshot("issues", "detail updated");
|
||||
});
|
||||
|
||||
it('block', utils.detail.blockTesting);
|
||||
|
||||
it('attachments', utils.detail.attachmentTesting)
|
||||
|
||||
it('screenshot', async function() {
|
||||
await utils.common.takeScreenshot("issues", "detail updated");
|
||||
});
|
||||
|
||||
it('delete', utils.detail.deleteTesting);
|
||||
|
||||
it('redirected', async function (){
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
var utils = require('../../utils');
|
||||
var taskDetailHelper = require('../../helpers').taskDetail;
|
||||
|
||||
var chai = require('chai');
|
||||
var chaiAsPromised = require('chai-as-promised');
|
||||
|
@ -8,6 +9,7 @@ var expect = chai.expect;
|
|||
|
||||
describe('Task detail', function(){
|
||||
let sprintUrl = "";
|
||||
|
||||
before(async function(){
|
||||
utils.common.goHome();
|
||||
utils.common.goToFirstProject();
|
||||
|
@ -31,20 +33,35 @@ describe('Task detail', function(){
|
|||
|
||||
it('watchers edition', utils.detail.watchersTesting);
|
||||
|
||||
it('history', utils.detail.historyTesting);
|
||||
it('iocaine edition', async function() {
|
||||
// Toggle iocaine status
|
||||
let iocaineHelper = taskDetailHelper.iocaine();
|
||||
let isIocaine = await iocaineHelper.isIocaine()
|
||||
iocaineHelper.togleIocaineStatus();
|
||||
let newIsIocaine = await iocaineHelper.isIocaine()
|
||||
expect(newIsIocaine).to.be.not.equal(isIocaine);
|
||||
|
||||
it('screenshot', async function() {
|
||||
await utils.common.takeScreenshot("tasks", "detail updated");
|
||||
// Toggle again
|
||||
iocaineHelper.togleIocaineStatus();
|
||||
newIsIocaine = await iocaineHelper.isIocaine()
|
||||
expect(newIsIocaine).to.be.equal(isIocaine);
|
||||
});
|
||||
|
||||
it('history', utils.detail.historyTesting);
|
||||
|
||||
it('block', utils.detail.blockTesting);
|
||||
|
||||
it('attachments', utils.detail.attachmentTesting)
|
||||
|
||||
it('screenshot', async function() {
|
||||
await utils.common.takeScreenshot("tasks", "detail updated");
|
||||
});
|
||||
|
||||
it('delete', utils.detail.deleteTesting);
|
||||
|
||||
it('redirected', async function (){
|
||||
let url = await browser.getCurrentUrl();
|
||||
expect(url.endsWith(sprintUrl)).to.be.true;
|
||||
});
|
||||
|
||||
})
|
||||
|
|
|
@ -32,14 +32,14 @@ describe('User story detail', function(){
|
|||
|
||||
it('history', utils.detail.historyTesting);
|
||||
|
||||
it('screenshot', async function() {
|
||||
await utils.common.takeScreenshot("user-stories", "detail updated");
|
||||
});
|
||||
|
||||
it('block', utils.detail.blockTesting);
|
||||
|
||||
it('attachments', utils.detail.attachmentTesting)
|
||||
|
||||
it('screenshot', async function() {
|
||||
await utils.common.takeScreenshot("user-stories", "detail updated");
|
||||
});
|
||||
|
||||
it('delete', utils.detail.deleteTesting);
|
||||
|
||||
it('redirected', async function (){
|
||||
|
|
|
@ -4,3 +4,4 @@ module.exports.kanban = require("./kanban-helper");
|
|||
module.exports.team = require("./team-helper");
|
||||
module.exports.wiki = require("./wiki-helper");
|
||||
module.exports.detail = require("./detail-helper");
|
||||
module.exports.taskDetail = require("./task-detail-helper");
|
||||
|
|
Loading…
Reference in New Issue