TT#56376 selenium: fix read-only value crash in controller_admin

controller_admin.t:
- fix crash cause by read-only value check reading the wrong field

Change-Id: I2dfcbe6895e709ee9fbe9dac40d34c37b57d112f
changes/43/32943/2
Nico Schedel 6 years ago
parent 5851ce66d4
commit 5a11c5a24f

@ -58,7 +58,7 @@ $d->fill_element('//*[@id="administrator_table_filter"]/label/input', 'xpath', $
diag('Check Admin details');
ok($d->wait_for_text('//*[@id="administrator_table"]/tbody/tr[1]/td[3]', $adminname), "Name is correct");
ok($d->wait_for_text('//*[@id="administrator_table"]/tbody/tr[1]/td[2]', $resellername), "Reseller is correct");
ok($d->find_element_by_xpath('//*[@id="administrator_table"]/tbody/tr[1]/td[6][contains(text(), "0")]'), "Read-Only value is correct");
ok($d->find_element_by_xpath('//*[@id="administrator_table"]/tbody/tr[1]/td[7][contains(text(), "0")]'), "Read-Only value is correct");
diag('Edit Admin details');
$adminname = ("admin" . int(rand(100000)) . "test");

Loading…
Cancel
Save