@ -67,7 +67,18 @@ diag("Check Reseller Details");
ok ( $ d - > wait_for_text ( '//*[@id="Resellers_table"]/tbody/tr[1]/td[3]' , $ resellername ) , 'Reseller Name is correct' ) ;
ok ( $ d - > find_element_by_xpath ( '//*[@id="Resellers_table"]//tr//td[contains(text(), "locked")]' ) , 'Status is correct' ) ;
diag ( "Unlock reseller" ) ;
$ d - > move_and_click ( '//*[@id="Resellers_table"]/tbody/tr[1]//td//div//a[contains(text(),"Edit")]' , 'xpath' , '//*[@id="Resellers_table_filter"]//input' ) ;
$ d - > find_element ( '//*[@id="status"]/option[@value="active"]' ) - > click ( ) ;
$ d - > find_element ( '#save' , 'css' ) - > click ( ) ;
diag ( "Click Details on our newly created reseller" ) ;
is ( $ d - > get_text ( '//*[@id="content"]//div[contains(@class, "alert")]' ) , "Reseller successfully updated" , "Correct Alert was shown" ) ;
$ d - > fill_element ( '#Resellers_table_filter label input' , 'css' , 'thisshouldnotexist' ) ;
ok ( $ d - > find_element_by_css ( '#Resellers_table tr > td.dataTables_empty' , 'css' ) , 'Garbage text was not found' ) ;
$ d - > fill_element ( '#Resellers_table_filter label input' , 'css' , $ resellername ) ;
ok ( $ d - > wait_for_text ( '//*[@id="Resellers_table"]/tbody/tr[1]/td[3]' , $ resellername ) , 'Reseller Name is correct' ) ;
ok ( $ d - > find_element_by_xpath ( '//*[@id="Resellers_table"]//tr//td[contains(text(), "active")]' ) , 'Status is correct' ) ;
$ d - > move_and_click ( '//*[@id="Resellers_table"]/tbody/tr[1]//td//div//a[contains(text(),"Details")]' , 'xpath' , '//*[@id="Resellers_table_filter"]//input' ) ;
diag ( "Create a empty Phonebook entry" ) ;