implementing a test for multi-categories parsing check feature.
[sgn.git] / t / selenium2 / 01_list / list_groups.t
blobc2fe9d3b30e5f46a84c931b42101c3ee307e0139
2 use strict;
4 use lib 't/lib';
6 use Test::More;
7 use SGN::Test::WWW::WebDriver;
9 my $d = SGN::Test::WWW::WebDriver->new();
11 $d->while_logged_in_as("submitter", sub {
12     # sleep(1);
14     $d->get_ok("/about/index.pl", "get root url test");
15     sleep(2);
17     my $out = $d->find_element_ok("lists_link", "name", "find lists_link")->click();
19     sleep(2);
21     $d->find_element_ok("list_select_checkbox_808", "id", "checkbox select list")->click();
23     sleep(1);
25     $d->find_element_ok("list_select_checkbox_810", "id", "checkbox select list")->click();
27     sleep(1);
29     $d->find_element_ok("make_public_selected_list_group", "id", "make public selected list group")->click();
31     sleep(1);
33     $d->accept_alert_ok();
35     sleep(1);
37     $d->find_element_ok("view_public_lists_button", "id", "view public lists")->click();
39     sleep(1);
41     $d->find_element_ok("view_public_list_johndoe_1_private", "id", "check view public lists");
43     sleep(1);
45     $d->find_element_ok("close_public_list_item_dialog", "id", "close public lists")->click();
47     sleep(1);
49     $d->find_element_ok("list_select_checkbox_808", "id", "checkbox select list")->click();
51     sleep(1);
53     $d->find_element_ok("list_select_checkbox_810", "id", "checkbox select list")->click();
55     sleep(1);
57     $d->find_element_ok("make_private_selected_list_group", "id", "make private selected list group")->click();
59     sleep(1);
61     $d->accept_alert_ok();
63     sleep(1);
65     $d->find_element_ok("list_select_checkbox_808", "id", "checkbox select list")->click();
67     sleep(1);
69     $d->find_element_ok("list_select_checkbox_810", "id", "checkbox select list")->click();
71     sleep(1);
73     $d->find_element_ok("new_combined_list_name", "id", "combine selected list group")->send_keys("combined_list");
75     $d->find_element_ok("combine_selected_list_group", "id", "combine selected list group")->click();
77     sleep(1);
79     $d->accept_alert_ok();
81     sleep(1);
83     $d->find_element_ok("view_list_combined_list", "id", "check view combined list");
85     sleep(1);
87     $d->find_element_ok("list_select_checkbox_808", "id", "checkbox select list")->click();
89     sleep(1);
91     $d->find_element_ok("list_select_checkbox_810", "id", "checkbox select list")->click();
93     sleep(1);
95     $d->find_element_ok("delete_selected_list_group", "id", "delete selected list group")->click();
97     sleep(1);
99     $d->accept_alert_ok();
101     sleep(1);
104     $d->find_element_ok("close_list_dialog_button", "id", "find close dialog button")->click();
108 $d->driver->close();
109 done_testing();