Clean up cruft in assign_owner.pl
[sgn.git] / t / tools / genefamily.t
blobb3ff1807ea4b775b746c9c5d8c2715fccffb6928
3 use strict;
4 use lib 't/lib';
6 use Test::More tests=>13;
7 use SGN::Test::WWW::Mechanize;
9 my $m = SGN::Test::WWW::Mechanize->new();
11 $m->while_logged_in( { user_type => 'curator' }, sub {
13     $m->get_ok('/tools/genefamily/search.pl');
15     my $form1 = {
16         form_name => 'genefamily_detail_form',
17         fields => { 'genefamily_id' => 0,
18                     'dataset' => 'test',
19                 }
20        };
22     $m->submit_form_ok($form1, "submit genefamily form");
25     $m->back();
27     my $form2 = {
28         form_name => 'member_search_form',
29         fields => {
30             member_id => 'At1g13780',
31             dataset => 'test',
32         }
33        };
35     $m->submit_form_ok($form2, "submit member form");
37     $m->content_like(qr/At1g13780/, "found required sequence");
38     #print $m->content;
40     my $f3 = {
41         form_name => 'genefamily_display_form',
42     };
44     $m->submit_form_ok($f3, "click view family button");
46     my $f4 = {
47         form_name => 'alignment_viewer_form',
48     };
49     $m->submit_form_ok($f4, "click alignment button");
50     $m->content_like(qr/At1g13780/i, "id on align viewer page");
52 });