From 2e89a363452980ef9cd200abdd6c827584be142b Mon Sep 17 00:00:00 2001 From: Carsten Otto Date: Sat, 18 Mar 2017 20:58:40 +0100 Subject: [PATCH 1/2] also update project name in multiple-actions mode fixes #2048 --- app/assets/javascripts/tracks.js.erb | 1 + features/project_edit.feature | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) diff --git a/app/assets/javascripts/tracks.js.erb b/app/assets/javascripts/tracks.js.erb index 80813d5f..e0b67960 100644 --- a/app/assets/javascripts/tracks.js.erb +++ b/app/assets/javascripts/tracks.js.erb @@ -28,6 +28,7 @@ var TracksForm = { }, set_project_name_and_default_project_name: function (name) { $('input#todo_project_name').val(name); + $('input#multi_todo_project_name').val(name); $('#default_project_name_id').val(name); }, set_tag_list_and_default_tag_list: function (name) { diff --git a/features/project_edit.feature b/features/project_edit.feature index df3f3cbd..c68df9f9 100644 --- a/features/project_edit.feature +++ b/features/project_edit.feature @@ -68,6 +68,22 @@ Feature: Edit a project And I submit a new action with description "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 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 From beec6dbb77063279938ab6f58f62586f40d8ab12 Mon Sep 17 00:00:00 2001 From: Jyri-Petteri Paloposki Date: Thu, 23 May 2019 00:38:18 +0300 Subject: [PATCH 2/2] Remove the test that was made in the old testing framework --- features/project_edit.feature | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/features/project_edit.feature b/features/project_edit.feature index c68df9f9..df3f3cbd 100644 --- a/features/project_edit.feature +++ b/features/project_edit.feature @@ -68,22 +68,6 @@ Feature: Edit a project And I submit a new action with description "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 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