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

Add jasmine test for aspect name form on contacts page

closes #6706
parent 7fe72879
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
# 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
+7 −0
Original line number Diff line number Diff line
@@ -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() {