Commit 02b330de authored by Steffen van Bergerem's avatar Steffen van Bergerem Committed by Dennis Schubert

Add jasmine test for aspect name form on contacts page

closes #6706
parent 7fe72879
# 0.5.8.0
## Refactor
## Bug fixes
* Fix empty name field when editing aspect names [#6548](https://github.com/diaspora/diaspora/issues/6548)
## Features
# 0.5.7.0
## Refactor
......
......@@ -84,6 +84,13 @@ describe("app.pages.Contacts", function(){
this.button.trigger('click');
expect($('.header > h3').css('display')).toBe('none');
});
it("sets the current aspect name as the default value in the form", function() {
$(".header > h3 #aspect_name").text("My awesome unicorn aspect");
expect($("#aspect_name_form input[name='aspect[name]']").val()).not.toBe("My awesome unicorn aspect");
this.button.trigger("click");
expect($("#aspect_name_form input[name='aspect[name]']").val()).toBe("My awesome unicorn aspect");
});
});
context('search contact list', function() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment