6 use Test::More 'tests'=>12;
8 use SGN::Test::WWW::WebDriver;
10 my $t = SGN::Test::WWW::WebDriver->new();
12 $t->while_logged_in_as(
15 $t->get_ok('/breeders/crosses');
20 "find element add location link as submitter"
26 "cross_name", "id", "find cross name input element")
27 ->send_keys("test_cross_1");
30 "cross_type", "id", "find cross type select element")->click("biparental");
33 "maternal_parent", "id", "find maternal parent input box")->send_keys("test_accession1");
36 "paternal_parent", "id", "find paternal parent input box")
37 ->send_keys("test_accession2");
39 # $t->find_element_ok(
40 # "cross_upload_breeding_program", "id", "find program select")
43 # $t->find_element_ok(
44 # "location", "id", "find location select")
48 "create_progeny_checkbox", "id", "find create accessions checkbox")
52 "progeny_number", "id", "find progeny number input box")
56 "create_cross_submit","id", "find cross submit button")
62 "dismiss_cross_saved_dialog", "id", "find dismiss message button")
67 $t->get_ok('/breeders/crosses');
70 "test_cross_1", "partial_link_text", "find link for test_cross")->click();