TT#56376 selenium: test configure buttons on the dashboard

ctr_billing, peering and reseller will access their pages by clicking on
the buttons on the dashboard to confirm those are working

Change-Id: Iad9314d675d42f10b874b3d9351ff9c37d93d7f4
changes/75/33875/3
Nico Schedel 6 years ago
parent 8846cdf7b2
commit be62293e4a

@ -24,7 +24,10 @@ my $run_ok = 0;
$c->login_ok();
$c->create_reseller_contract($contractid);
$c->create_reseller($resellername, $contractid);
$c->create_billing_profile($billingname, $resellername);
diag('Go to Billing Profile Page');
$d->find_element('//*[@class="brand"]')->click();
$d->find_element('//*[@id="content"]//div[contains(text(), "Billing")]/../../div/a')->click();
diag('Trying to create a empty billing profile');
$d->find_element('Create Billing Profile', 'link_text')->click();
@ -34,7 +37,10 @@ diag('Check if Errors show up');
ok($d->find_element_by_xpath('//form//div//span[contains(text(), "Reseller field is required")]'));
ok($d->find_element_by_xpath('//form//div//span[contains(text(), "Handle field is required")]'));
ok($d->find_element_by_xpath('//form//div//span[contains(text(), "Name field is required")]'));
diag('Create a legit Billing Profile');
$d->find_element('//*[@id="mod_close"]')->click();
$c->create_billing_profile($billingname, $resellername);
diag('Search for Billing profile');
$d->fill_element('//*[@id="billing_profile_table_filter"]//input', 'xpath', 'thisshouldnotexist');

@ -20,8 +20,7 @@ my $run_ok = 0;
$c->login_ok();
diag("Go to Peerings page");
$d->find_element('//*[@id="main-nav"]//*[contains(text(),"Settings")]')->click();
$d->find_element("Peerings", 'link_text')->click();
$d->find_element('//*[@id="content"]//div[contains(text(), "Peerings")]/../../div/a')->click();
diag("Create a empty Peering Group");
$d->find_element('//*[@id="masthead"]//h2[contains(text(),"SIP Peering Groups")]');

@ -22,8 +22,8 @@ $c->login_ok();
$c->create_reseller_contract($contractid);
diag('Go to reseller page');
$d->find_element('//*[@id="main-nav"]//*[contains(text(),"Settings")]')->click();
$d->find_element('Resellers', 'link_text')->click();
$d->find_element('//*[@class="brand"]')->click();
$d->find_element('//*[@id="content"]//div[contains(text(), "Resellers")]/../../div/a')->click();
diag('Try to create a empty reseller');
$d->find_element('Create Reseller', 'link_text')->click();

Loading…
Cancel
Save