diff --git a/app/assets/javascripts/aspect-edit-pane.js b/app/assets/javascripts/aspect-edit-pane.js index aeaa196e038db23dbfbba0c500d1e84de6d07bc5..61a0bc7f00b52ad45bcc0754d5aee86a58d1c2d4 100644 --- a/app/assets/javascripts/aspect-edit-pane.js +++ b/app/assets/javascripts/aspect-edit-pane.js @@ -17,7 +17,7 @@ function updatePageAspectName( an_id, new_name) { } $(document).ready(function() { - $('#aspect_name_title').on('click', '#rename_aspect_link', function(){ + $(document).on('click', '#rename_aspect_link', function(){ toggleAspectTitle(); }); diff --git a/features/desktop/manages_aspects.feature b/features/desktop/manages_aspects.feature index c5c8b26405f68e8706f485c575cc1339556a6c5e..68021fcafa079b48ba5ddf473b026e4ca21a8a2f 100644 --- a/features/desktop/manages_aspects.feature +++ b/features/desktop/manages_aspects.feature @@ -53,6 +53,17 @@ Feature: User manages contacts When I uncheck the first contact list button Then I should have 0 contacts in "Cat People" + + Scenario: Renaming an aspect + Given I am signed in + And I have an aspect called "Cat People" + When I am on the contacts page + And I follow "Cat People" + And I follow "Manage" within "#aspect_controls" + And I follow "rename" + And I fill in "aspect_name" with "Unicorn People" + And I press "update" + Then I should see "Unicorn People" within "#aspect_name_title" Scenario: infinite scroll on contacts index Given I am signed in