Merge pull request #5205 from solgenomics/topic/generic_trial_upload
[sgn.git] / t / unit_mech / Controller / Organism / Search.t
blobb5cf59a366d7e90748e41ee045cdda98b658bf00
1 use Test::Most;
3 use lib 't/lib';
5 use SGN::Test::WWW::Mechanize skip_cgi => 1;
7 my $mech = SGN::Test::WWW::Mechanize->new;
9 $mech->get_ok('/search/organisms');
10 $mech->content_contains('Organism/Taxon Search');
11 $mech->submit_form_ok({
12     form_name => 'organism_search_form',
13     fields => {
14         common_name => 'tomato',
15         species => 'lyco',
16     },
17 });
19 $mech->content_contains('Solanum lycopersicum');
21 done_testing;