Test that placeholder is not displaced if WP is readonly

pull/2306/head
Hagen Schink 10 years ago
parent 3f983835ab
commit fe6add5852
  1. 12
      frontend/tests/unit/tests/work_packages/directives/inplace-editor-directive-test.js

@ -100,6 +100,18 @@ describe('inplaceEditor Directive', function() {
it('should not be editable', function() {
expect(scope.isEditable).to.be.falsy;
});
describe('placeholder', function() {
it('should not render the default text', function() {
var text = element.find('.ined-read-value .read-value-wrapper').text();
expect(text).be.empty;
});
it('should set default text switch', function() {
expect(elementScope.placeholderSet).to.be.false;
});
});
});
describe('Work package is editable', function() {

Loading…
Cancel
Save