[Rt-commit] r12078 - in rt/branches/3.8-TESTING: . html/Prefs/Dashboards
sartak at bestpractical.com
sartak at bestpractical.com
Mon May 5 19:38:02 EDT 2008
Author: sartak
Date: Mon May 5 19:38:00 2008
New Revision: 12078
Modified:
rt/branches/3.8-TESTING/ (props changed)
rt/branches/3.8-TESTING/html/Prefs/Dashboards/Modify.html
rt/branches/3.8-TESTING/t/web/dashboards.t
Log:
r54898 at onn: sartak | 2008-05-05 06:10:56 -0400
Let the user know that he actually saved the dashboard
Modified: rt/branches/3.8-TESTING/html/Prefs/Dashboards/Modify.html
==============================================================================
--- rt/branches/3.8-TESTING/html/Prefs/Dashboards/Modify.html (original)
+++ rt/branches/3.8-TESTING/html/Prefs/Dashboards/Modify.html Mon May 5 19:38:00 2008
@@ -102,6 +102,7 @@
Name => $ARGS{'Name'},
Privacy => $ARGS{'Privacy'},
);
+ push @results, $msg;
}
else {
$msg = "No permission to create dashboards";
Modified: rt/branches/3.8-TESTING/t/web/dashboards.t
==============================================================================
--- rt/branches/3.8-TESTING/t/web/dashboards.t (original)
+++ rt/branches/3.8-TESTING/t/web/dashboards.t Mon May 5 19:38:00 2008
@@ -32,6 +32,11 @@
$m->get_ok($url."Prefs/Dashboards/index.html");
$m->content_contains("New dashboard", "'New dashboard' link because we now have ModifyDashboard");
-$m->save_content('test.html');
+$m->follow_link_ok({text => "New dashboard"});
+$m->form_name('ModifyDashboard');
+$m->field("Name" => 'different dashboard');
+$m->click_button(value => 'Save Changes');
+$m->content_lacks("No permission to create dashboards");
+$m->content_contains("Saved dashboard different dashboard");
More information about the Rt-commit
mailing list