3 use Test::More 'tests' => 6;
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 {
14 $t->get_ok('/breeders/accessions');
17 $t->find_element_ok("upload_pedigrees_link", "id", "click on upload_pedigrees_link ")->click();
20 my $upload_input = $t->find_element_ok("pedigrees_uploaded_file", "id", "find file input");
22 my $filename = $f->config->{basepath}."/t/data/pedigree_upload/upload_accession_selenium_test.txt";
24 $t->driver()->upload_file($filename);
26 $upload_input->send_keys($filename);
29 $t->find_element_ok("upload_pedigrees_dialog_submit", "id", "validate upload pedigrees file")->click();
32 $t->find_element_ok("upload_pedigrees_store", "id", "store upload pedigrees file to database")->click();
35 $t->find_element_ok("pedigrees_upload_success_dismiss", "id", "dismiss success modal ")->click();
40 $t->driver()->close();