also update project name in multiple-actions mode

fixes #2048
This commit is contained in:
Carsten Otto 2017-03-18 20:58:40 +01:00
parent 881faa0d02
commit 2e89a36345
2 changed files with 17 additions and 0 deletions

View file

@ -28,6 +28,7 @@ var TracksForm = {
}, },
set_project_name_and_default_project_name: function (name) { set_project_name_and_default_project_name: function (name) {
$('input#todo_project_name').val(name); $('input#todo_project_name').val(name);
$('input#multi_todo_project_name').val(name);
$('#default_project_name_id').val(name); $('#default_project_name_id').val(name);
}, },
set_tag_list_and_default_tag_list: function (name) { set_tag_list_and_default_tag_list: function (name) {

View file

@ -68,6 +68,22 @@ Feature: Edit a project
And I submit a new action with description "a new next action" And I submit a new action with description "a new next action"
Then I should see the todo "a new next action" Then I should see the todo "a new next action"
# Ticket #2048
@javascript
Scenario: I can change the name of the project and it should still allow me to add multiple new actions
Given I have a project "bananas"
When I go to the "bananas" project
And I edit the project name to "cherries"
And I edit the default context to "@pc"
And I follow "Add multiple next actions"
And I submit multiple actions with using
"""
one new next action
another new next action
"""
Then I should see the todo "one new next action"
And I should see the todo "another new next action"
@javascript @javascript
Scenario: I can change the default context of the project and it should update the new todo form Scenario: I can change the default context of the project and it should update the new todo form
Given I have a project "bananas" with 1 todos Given I have a project "bananas" with 1 todos