6 use Test::More tests => 3;
7 use Test::WWW::Mechanize;
11 require 't/config.pl';
15 my $mech = Test::WWW::Mechanize->new;
18 sub save { write_file "/tmp/login-$save_count.html", @_; $save_count++; }
21 $mech->get_ok( 'https://localhost', 'opac' );
24 $mech->follow_link_ok({ text_regex => qr/Log in to Your Account/i }, 'login form' );
27 $mech->submit_form_ok({
30 userid => $config->{bind_as},
31 password => $config->{password},