[Rt-commit] r19809 - rt/3.8/trunk/t/web

falcone at bestpractical.com falcone at bestpractical.com
Fri May 29 09:10:53 EDT 2009


Author: falcone
Date: Fri May 29 09:10:53 2009
New Revision: 19809

Modified:
   rt/3.8/trunk/t/web/dashboards-groups.t
   rt/3.8/trunk/t/web/dashboards.t

Log:
fix more wording related test failures

Modified: rt/3.8/trunk/t/web/dashboards-groups.t
==============================================================================
--- rt/3.8/trunk/t/web/dashboards-groups.t	(original)
+++ rt/3.8/trunk/t/web/dashboards-groups.t	Fri May 29 09:10:53 2009
@@ -58,21 +58,21 @@
 
 $m->get_ok("$url/Dashboards");
 
-$m->follow_link_ok({text => "New dashboard"});
+$m->follow_link_ok({text => "New"});
 $m->form_name('ModifyDashboard');
 is_deeply([$m->current_form->find_input('Privacy')->possible_values], ["RT::User-" . $user_obj->Id], "the only selectable privacy is user");
 $m->content_lacks('Delete', "Delete button hidden because we are creating");
 
 $user_obj->PrincipalObj->GrantRight(Right => 'CreateGroupDashboard', Object => $inner_group);
 
-$m->follow_link_ok({text => "New dashboard"});
+$m->follow_link_ok({text => "New"});
 $m->form_name('ModifyDashboard');
 is_deeply([$m->current_form->find_input('Privacy')->possible_values], ["RT::User-" . $user_obj->Id, "RT::Group-" . $inner_group->Id], "the only selectable privacies are user and inner group (not outer group)");
 $m->field("Name" => 'inner dashboard');
 $m->field("Privacy" => "RT::Group-" . $inner_group->Id);
 $m->content_lacks('Delete', "Delete button hidden because we are creating");
 
-$m->click_button(value => 'Save Changes');
+$m->click_button(value => 'Create');
 $m->content_lacks("No permission to create dashboards");
 $m->content_contains("Saved dashboard inner dashboard");
 $m->content_lacks('Delete', "Delete button hidden because we lack DeleteDashboard");

Modified: rt/3.8/trunk/t/web/dashboards.t
==============================================================================
--- rt/3.8/trunk/t/web/dashboards.t	(original)
+++ rt/3.8/trunk/t/web/dashboards.t	Fri May 29 09:10:53 2009
@@ -36,7 +36,7 @@
 ok $m->login(customer => 'customer'), "logged in";
 
 $m->get_ok($url."Dashboards/index.html");
-$m->content_lacks("New dashboard", "No 'new dashboard' link because we have no CreateOwnDashboard");
+$m->content_lacks("New", "No 'new dashboard' link because we have no CreateOwnDashboard");
 
 $m->no_warnings_ok;
 


More information about the Rt-commit mailing list