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');
17 $t->find_element_ok("upload_pedigrees_link", "id", "click on upload_pedigrees_link ")->click();
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);
31 $t->find_element_ok("upload_pedigrees_dialog_submit", "id", "submit upload pedigrees file ")->click();
35 $t->find_element_ok("pedigrees_upload_success_dismiss", "id", "dismiss success modal ")->click();