6 use SGN::Test::WWW::WebDriver;
8 my $d = SGN::Test::WWW::WebDriver->new();
10 $d->login_as("submitter");
12 $d->get_ok('/breeders/trial/137');
16 my $out = $d->find_element_ok("lists_link", "name", "find lists_link")->click();
18 $d->find_element_ok("add_list_input", "id", "find add list input");
20 my $add_list_input = $d->find_element_ok("add_list_input", "id", "find add list input test");
22 $add_list_input->send_keys("new_test_list_pheno_spreadsheet");
26 $d->find_element_ok("add_list_button", "id", "find add list button test")->click();
30 $d->find_element_ok("view_list_new_test_list_pheno_spreadsheet", "id", "view list test")->click();
34 my $type_select = $d->find_element_ok("type_select", "id", "find list type");
36 $type_select->send_keys("traits");
40 $d->find_element_ok("dialog_add_list_item", "id", "add test list")->send_keys("dry matter content|CO_334:0000092\nfresh root weight|CO_334:0000012\nfresh shoot weight|CO_334:0000016\nharvest index|CO_334:0000015\n");
45 $d->find_element_ok("dialog_add_list_item_button", "id", "find dialog_add_list_item_button test")->click();
47 my $button = $d->find_element_ok("close_list_item_dialog", "id", "find close_list_item_dialog button test");
54 $d->find_element_ok("close_list_dialog_button", "id", "find close dialog button")->click();
57 $d->get_ok('/breeders/trial/137');
61 my $create_spreadsheet_link = $d->find_element_ok('create_spreadsheet_link', 'id', "find create spreadsheet link");
63 $create_spreadsheet_link->click();
67 $d->find_element_ok('trait_list_list_select', 'id', "find list select select box")->send_keys('new_test_list_pheno_spreadsheet');
69 my $button = $d->find_element_ok('create_phenotyping_ok_button', 'id', "create");