controller_subscriber.t:
- add checks to see if create/edit/delete labels show up and if they show
the correct text
Change-Id: I042201738176e76011783631b31f2db08b3e0b37
ok($d->find_element_by_xpath('//*[@id="content"]//div[contains(text(), "Subscriber profile set successfully created")]'),"Label 'Subscriber profile set successfully created' was shown");
ok($d->wait_for_text('//*[@id="subscriber_profile_sets_table"]/tbody/tr/td[3]',$setname),'Name is correct');
ok($d->wait_for_text('//*[@id="subscriber_profile_sets_table"]/tbody/tr/td[4]','This is a description. It describes things'),'Description is correct');
ok($d->find_element_by_xpath('//*[@id="subscriber_profile_sets_table"]//tr//td[contains(text(), "'.$resellername.'")]'),'Reseller is correct');
ok($d->find_element_by_xpath('//*[@id="content"]//div[contains(text(), "Subscriber profile set successfully updated")]'),"Label 'Subscriber profile set successfully updated' was shown");
ok($d->wait_for_text('//*[@id="subscriber_profile_sets_table"]/tbody/tr/td[3]',$setname),'Name is correct');
ok($d->wait_for_text('//*[@id="subscriber_profile_sets_table"]/tbody/tr/td[4]','Very Good description here'),'Description is correct');
ok($d->find_element_by_xpath('//*[@id="subscriber_profile_sets_table"]//tr//td[contains(text(), "'.$resellername.'")]'),'Reseller is correct');
ok($d->find_element_by_xpath('//*[@id="content"]//div[contains(text(), "Preference language successfully updated")]'),"Label 'Preference language successfully updated' was shown");
ok($d->find_element_by_xpath('//table//tr/td[contains(text(), "language")]/../td/select/option[contains(text(), "German") and @selected="selected"]'),'"German" has been selected');
ok($d->find_element_by_xpath('//*[@id="preferences_table_cf"]/tbody/tr[1]/td[contains(text(), '.$bsetname.')]'),'B-Set was selected');
ok($d->find_element_by_xpath('//*[@id="preferences_table_cf"]/tbody/tr[1]/td[contains(text(), '.$destinationname.')]'),'Destination set was selected');
ok($d->find_element_by_xpath('//*[@id="content"]//div[contains(text(), "Subscriber profile set successfully deleted")]'),"Label 'Subscriber profile set successfully deleted' was shown");
ok($d->find_element_by_css('#subscriber_profile_sets_table tr > td.dataTables_empty'),'Table is empty');