make xls the first genotyping trial creation option
[sgn.git] / t / selenium2 / breeders / upload_pedigree_file.t
blob1025eaffff2d89a9948175d93878cd433eea54e5
1 use lib 't/lib';
3 use Test::More;
5 use SGN::Test::WWW::WebDriver;
6 use SGN::Test::Fixture;
8 my $f = SGN::Test::Fixture->new();
9 my $t = SGN::Test::WWW::WebDriver->new();
11 $t->while_logged_in_as("submitter", sub { 
13     $t->get_ok('/breeders/accessions');
15     sleep(2);
17     $t->find_element_ok("upload_pedigrees_link", "id", "click on upload_pedigrees_link ")->click();
19     sleep(1);
21     my $upload_input = $t->find_element_ok("pedigrees_uploaded_file", "id", "find file input");
23     my $filename = $f->config->{basepath}."/t/data/pedigree_upload/upload_accession_test.txt";
25     my $remote_filename = $t->driver()->upload_file($filename);
27     $upload_input->send_keys($filename);
29     sleep(1);
31     $t->find_element_ok("upload_pedigrees_dialog_submit", "id", "submit upload pedigrees file ")->click();
33     sleep(3);
35     $t->find_element_ok("pedigrees_upload_success_dismiss", "id", "dismiss success modal ")->click();
37     sleep(1);
39     }
43 done_testing();