[Rt-commit] r10123 - rt/branches/3.7-EXPERIMENTAL/t/web

ruz at bestpractical.com ruz at bestpractical.com
Tue Dec 25 17:25:53 EST 2007


Author: ruz
Date: Tue Dec 25 17:25:52 2007
New Revision: 10123

Modified:
   rt/branches/3.7-EXPERIMENTAL/t/web/rights1.t

Log:
* fix failing test

Modified: rt/branches/3.7-EXPERIMENTAL/t/web/rights1.t
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/t/web/rights1.t	(original)
+++ rt/branches/3.7-EXPERIMENTAL/t/web/rights1.t	Tue Dec 25 17:25:52 2007
@@ -67,7 +67,7 @@
 ok($grantid,$grantmsg);
 $agent->reload();
 like($agent->{'content'} , qr/Load saved search/i, "Search loading box exists");
-ok($agent->{'content'} !~ /input\s+type=.submit.\s+name=.Save./i, 
+ok($agent->{'content'} !~ /input\s+type=['"]submit['"][^>]+name=['"]SavedSearchSave['"]/i, 
    "Still no saved searches box");
 
 ($grantid,$grantmsg) =$user_obj->PrincipalObj->GrantRight(Right => 'CreateSavedSearch');
@@ -75,7 +75,7 @@
 $agent->reload();
 like($agent->{'content'} , qr/Load saved search/i, 
    "Search loading box still exists");
-like($agent->{'content'} , qr/input\s+type=.submit.\s+name=.Save./i, 
+like($agent->{'content'} , qr/input\s+type=['"]submit['"][^>]+name=['"]SavedSearchSave['"]/i, 
    "Saved searches box exists");
 
 # Create a group, and a queue, so we can test limited user visibility


More information about the Rt-commit mailing list