|
|
|
@ -37,18 +37,22 @@ var WorkPackageDetailsPane = require('./pages/work-package-details-pane.js'); |
|
|
|
|
/*jshint expr: true*/ |
|
|
|
|
|
|
|
|
|
describe('OpenProject', function() { |
|
|
|
|
var page = new WorkPackageDetailsPane(819, 'overview'); |
|
|
|
|
context('details pane is visible', function() { |
|
|
|
|
before(function() { |
|
|
|
|
var page = new WorkPackageDetailsPane(819, 'overview'); |
|
|
|
|
page.get(); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
it('should show work packages details pane', function() { |
|
|
|
|
page.get(); |
|
|
|
|
expect($('.work-packages--details').isPresent()).to.eventually.be.true; |
|
|
|
|
it('should show work packages details pane', function() { |
|
|
|
|
expect($('.work-packages--details').isPresent()).to.eventually.be.true; |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
describe('editable', function() { |
|
|
|
|
context('subject', function() { |
|
|
|
|
context('work package with updateImmediately link', function() { |
|
|
|
|
beforeEach(function() { |
|
|
|
|
page = new WorkPackageDetailsPane(819, 'overview'); |
|
|
|
|
var page = new WorkPackageDetailsPane(819, 'overview'); |
|
|
|
|
page.get(); |
|
|
|
|
}); |
|
|
|
|
it('should render an editable subject', function() { |
|
|
|
@ -57,7 +61,7 @@ describe('OpenProject', function() { |
|
|
|
|
}); |
|
|
|
|
context('work package without updateImmediately link', function() { |
|
|
|
|
beforeEach(function() { |
|
|
|
|
page = new WorkPackageDetailsPane(820, 'overview'); |
|
|
|
|
var page = new WorkPackageDetailsPane(820, 'overview'); |
|
|
|
|
page.get(); |
|
|
|
|
}); |
|
|
|
|
it('should not render an editable subject', function() { |
|
|
|
@ -66,7 +70,7 @@ describe('OpenProject', function() { |
|
|
|
|
}); |
|
|
|
|
context('work package with a wrong version', function() { |
|
|
|
|
beforeEach(function() { |
|
|
|
|
page = new WorkPackageDetailsPane(821, 'overview'); |
|
|
|
|
var page = new WorkPackageDetailsPane(821, 'overview'); |
|
|
|
|
page.get(); |
|
|
|
|
$('h2 .inplace-editor .ined-read-value').then(function(e) { |
|
|
|
|
e.click(); |
|
|
|
@ -80,7 +84,7 @@ describe('OpenProject', function() { |
|
|
|
|
}); |
|
|
|
|
context('description', function() { |
|
|
|
|
beforeEach(function() { |
|
|
|
|
page = new WorkPackageDetailsPane(819, 'overview'); |
|
|
|
|
var page = new WorkPackageDetailsPane(819, 'overview'); |
|
|
|
|
page.get(); |
|
|
|
|
}); |
|
|
|
|
describe('read state', function() { |
|
|
|
@ -121,7 +125,7 @@ describe('OpenProject', function() { |
|
|
|
|
}); |
|
|
|
|
context('status', function() { |
|
|
|
|
beforeEach(function() { |
|
|
|
|
page = new WorkPackageDetailsPane(819, 'overview'); |
|
|
|
|
var page = new WorkPackageDetailsPane(819, 'overview'); |
|
|
|
|
page.get(); |
|
|
|
|
}); |
|
|
|
|
describe('read state', function() { |
|
|
|
|