Subject: | page_links_ok() considers a link which requires Auth broken |
If page_links_ok() hits a link with requires authentication, it considers it broken and fails the test.
I think this is a bug and that it should emit a warning instead, perhaps with the option to supress such warning somewhere.
Or more generally, I think both kinds of semantics should be allowed:
"Every link on the page is OK".
"Every link /I have access to/ on the page is OK."
Here's the page I was playing with. It has a password protected resume on it, which is a valid like if you log in.
#!/usr/bin/perl
use Test::More qw/no_plan/;
use Test::WWW::Mechanize;
my $a = Test::WWW::Mechanize->new();
$a->get('http://glozer.net/code.html');
$a->page_links_ok();