8 -f && /\.html$/ && $_ !~ /Logout.html$/ && $File::Find::dir !~ /RichText/;
11 find( sub { wanted() and $tests += 4 }, 'share/html/' );
16 use HTTP::Request::Common;
21 my $cookie_jar = HTTP::Cookies->new;
24 my ($baseurl, $agent) = RT::Test->started_ok;
26 # give the agent a place to stash the cookies
27 $agent->cookie_jar($cookie_jar);
30 my $url = $agent->rt_base_url;
31 diag "Base URL is '$url'" if $ENV{TEST_VERBOSE};
34 is ($agent->{'status'}, 200, "Loaded a page");
38 # follow the link marked "Login"
39 $agent->login(root => 'password');
40 is($agent->{'status'}, 200, "Fetched the page ok");
41 like( $agent->{'content'} , qr/Logout/i, "Found a logout link");
44 find ( sub { wanted() and test_get($File::Find::name) } , 'share/html/');
49 $file =~ s#^share/html/##;
50 diag( "testing $url/$file" ) if $ENV{TEST_VERBOSE};
51 ok ($agent->get("$url/$file", "GET $url/$file"), "Can Get $url/$file");
52 is ($agent->{'status'}, 200, "Loaded $file");
53 # ok( $agent->{'content'} =~ /Logout/i, "Found a logout link on $file ");
54 ok( $agent->{'content'} !~ /Not logged in/i, "Still logged in for $file");
55 ok( $agent->{'content'} !~ /raw error/i, "Didn't get a Mason compilation error on $file");