From dce58f41f8fb1e1a1f55622558452a56743869b8 Mon Sep 17 00:00:00 2001 From: Reinier Balt Date: Wed, 3 Dec 2008 21:05:16 +0100 Subject: [PATCH] Add testcase where changing the name of a project should be reflected in the default project name. resolves #756 --- ..._project_name_should_change_default_project.rsel | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test/selenium/project_detail/changing_project_name_should_change_default_project.rsel diff --git a/test/selenium/project_detail/changing_project_name_should_change_default_project.rsel b/test/selenium/project_detail/changing_project_name_should_change_default_project.rsel new file mode 100644 index 00000000..e78dcd21 --- /dev/null +++ b/test/selenium/project_detail/changing_project_name_should_change_default_project.rsel @@ -0,0 +1,13 @@ +setup :fixtures => :all +login :as => 'admin' +open "/projects/1" + +# change project name +click "project_name_in_place_editor" +wait_for_element_present "css=#project_name_in_place_editor-inplaceeditor input.editor_field" +type "css=#project_name_in_place_editor-inplaceeditor input.editor_field", "Test Foo" +click "css=#project_name_in_place_editor-inplaceeditor input.editor_ok_button" +wait_for_text "project_name_in_place_editor", "Test Foo" + +# check that the default project name is changed too +assert_value "todo_project_name", "Test Foo" \ No newline at end of file