controller_reseller.t:
- create default reseller instead of creating a new one from scratch.
saves some time and we test default reseller creation too
Change-Id: Icf215dc39fe8b678af6b0fba8287c1378f169164
diag('Create default Reseller + Contract for termination testing');
$d->find_element('//*[@id="content"]//div//form//button[contains(text(), "Create Reseller with default values")]')->click();
ok($d->find_element_by_xpath('//*[@id="masthead"]//div//h2[contains(text(), "Reseller Details for")]'),"We are on the correct page");
diag('Get Reseller Name');
if($d->find_element_by_xpath('//*[@id="reseller_details"]//div//a[contains(text(), "Reseller Base Information")]/../../../div')->get_attribute('class',1)eq'accordion-group'){
$d->find_element('//*[@id="reseller_details"]//div//a[contains(text(), "Reseller Base Information")]')->click();
is($d->get_text('//*[@id="content"]//div[contains(@class, "alert")]'),"Reseller successfully created with login Default".$temp." and password defaultresellerpassword, please review your settings below","Correct Alert was shown");