5 use SGN::Test::WWW::Mechanize;
8 my $m = SGN::Test::WWW::Mechanize->new();
12 $m->get_ok("/cview/");
14 $m->content_contains("Interactive maps");
16 my @map_links = $m->find_all_links( url_regex => qr/map.pl/ );
18 foreach my $map (@map_links) {
19 my $link_text = $map->text();
21 # skip maps with non-numeric ids if local data not available
23 if ($map->url =~ /map.*?id=[a-zA-Z]+/ && $m->test_level() ne 'local') {
24 diag("Skipping $link_text\n");
28 $m->follow_link_ok( { text => $map->text() } );
31 $m->content_contains("Map statistics");
34 my @chr_links = $m->find_all_links( url_regex => qr/view_chromosome.pl/ );
36 # if (@chr_links) { $m->follow_link_ok({ text=>$chr_links[0]->text() }); $tests++;}
41 if ( $m->content() =~ /Overlay/ ) {
43 form_name => 'overlay_form',
50 $m->submit_form_ok( \%form, "submit overlay form" );