4 qtl.t - tests for cgi-bin/qtl.pl
8 Tests for cgi-bin/phenome/locus_display.pl
12 Naama Menda <nm249@cornell.edu>
21 use SGN::Test::WWW::Mechanize;
23 use CXGN::Phenome::Schema;
26 my $mech = SGN::Test::WWW::Mechanize->new;
28 $mech->with_test_level( local => sub {
29 my $schema = $mech->context->dbic_schema('CXGN::Phenome::Schema');
31 #find a test locus that has no dbxrefs linked
33 my $test_locus = $schema->resultset("Locus")->search(
34 { 'me.obsolete' => 'f',
37 join => 'locus_dbxrefs' }
40 $test_id = $test_locus->locus_id() if $test_locus;
41 $mech->get_ok("/cgi-bin/phenome/locus_display.pl?locus_id=$test_id");
43 $mech->content_contains("Locus editor");
44 my $allele_id = $test_locus->alleles->first->allele_id();
45 $mech->get_ok("/cgi-bin/phenome/allele.pl?allele_id=$allele_id");