5 use SGN::Test::WWW::Mechanize skip_cgi => 1;
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 'remote' ) {
24 diag("Skipping $link_text\n");
28 diag "following '$link_text' link";
30 $m->follow_link_ok( { text => $map->text() } );
33 $m->content_contains("Map statistics");
36 my @chr_links = $m->find_all_links( url_regex => qr/view_chromosome.pl/ );
38 # if (@chr_links) { $m->follow_link_ok({ text=>$chr_links[0]->text() }); $tests++;}
43 if ( $m->content() =~ /Overlay/ ) {
45 form_name => 'overlay_form',
52 $m->submit_form_ok( \%form, "submit overlay form" );