TT#56376 selenium: add test: check admin details

controller_admin.t
- Check if reseller name and admin name are correct

Change-Id: I691964499dba25fdf3f54844657553f3c93b85a1
changes/68/30368/2
Nico Schedel 7 years ago
parent f9ced2f830
commit 25d2982e8b

@ -44,7 +44,10 @@ sub ctr_admin() {
$d->fill_element('//*[@id="administrator_table_filter"]/label/input', 'xpath', 'thisshouldnotexist');
ok($d->find_element_by_css('#administrator_table tr > td.dataTables_empty', 'css'), 'Garbage text was not found');
$d->fill_element('//*[@id="administrator_table_filter"]/label/input', 'xpath', $adminname);
ok($d->wait_for_text('//*[@id="administrator_table"]/tbody/tr[1]/td[3]', $adminname), "Admin found");
diag('Check Admin details');
ok($d->find_element_by_xpath('//*[@id="administrator_table"]/tbody/tr[1]/td[contains(text(), '. $adminname .')]'), "Name is correct");
ok($d->find_element_by_xpath('//*[@id="administrator_table"]/tbody/tr[1]/td[contains(text(), '. $resellername .')]'), "Reseller is correct");
diag('New admin tries to login now');
$c->login_ok($adminname, $adminpwd);

Loading…
Cancel
Save