TT#56376 selenium: fixes for ctr_profileset + runner

controller_profileset.t:
- check if edit window opens when trying to add ncos to profileset
- when adding ncos to profileset, show entries first before clicking on one
- cut away some unnecessary code

runner.t:
- fix manual launch file names

Change-Id: Ic26f3686034b16d7dbd05bca9be71c04243a03f2
changes/23/33723/3
Nico Schedel 6 years ago
parent 800957e900
commit 5afd029657

@ -128,6 +128,8 @@ $d->move_and_click('//*[@id="subscriber_profile_table"]//tr[1]/td//a[contains(te
diag('Add NCOS to Profile');
$d->find_element('//*[@id="preference_groups"]//div//a[contains(text(), "Call Blockings")]')->click();
$d->move_and_click('//table//tr//td[contains(text(), "ncos")]//..//td//a[contains(text(), "Edit")]', 'xpath', '//*[@id="preference_groups"]//div//a[contains(text(), "Call Blockings")]');
ok($d->find_element_by_xpath('//*[@id="mod_edit"]/div/h3[contains(text(), "' . "Edit Preference 'NCOS Level'" . '")]'), "Edit Window has been opened");
$d->find_element('//*[@id="ncos"]')->click();
$d->find_element('//*[@id="ncos"]//option[contains(text(), "'. $ncosname .'")]')->click();
$d->find_element('//*[@id="save"]')->click();
@ -217,8 +219,6 @@ $d->fill_element('//*[@id="subscriber_profile_sets_table_filter"]/label/input',
ok($d->find_element_by_css('#subscriber_profile_sets_table tr > td.dataTables_empty'), 'Cloned Profile set was deleted');
diag('Trying to NOT Delete Subscriber Profile Set');
$d->fill_element('//*[@id="subscriber_profile_sets_table_filter"]/label/input', 'xpath', 'thisshouldnotexist');
ok($d->find_element_by_css('#subscriber_profile_sets_table tr > td.dataTables_empty'), 'Table is empty');
$d->fill_element('//*[@id="subscriber_profile_sets_table_filter"]/label/input', 'xpath', $setname);
ok($d->wait_for_text('//*[@id="subscriber_profile_sets_table"]/tbody/tr/td[3]', $setname), 'Profile Set was found');
$d->move_and_click('//*[@id="subscriber_profile_sets_table"]/tbody/tr[1]/td/div/a[contains(text(), "Delete")]', 'xpath', '//*[@id="subscriber_profile_sets_table_filter"]/label/input');

@ -105,11 +105,11 @@ if($testplan eq $dir . 'runner.t') {
push @tests, $string;
};
if (index($testplan, $dir . 'controller_profilepackage.t') != -1) {
$string = $dir . 'controller_profile.t';
$string = $dir . 'controller_profilepackage.t';
push @tests, $string;
};
if (index($testplan, $dir . 'controller_profileset.t') != -1) {
$string = $dir . 'controller_subprofile.t';
$string = $dir . 'controller_profileset.t';
push @tests, $string;
};
if (index($testplan, $dir . 'controller_reseller.t') != -1) {

Loading…
Cancel
Save