controller_billing.t, controller_profileset.t, controller_timeset.t:
- search field caching caused some problems, where elements would not show
up because cached search would not find elements which the names got updated
Change-Id: I11ae4dca9c07a720f2d491878402cd36650b015d
is($d->get_text_safe('//*[@id="content"]//div[contains(@class, "alert")]'),'Special offpeak entry successfully updated','Correct Alert was shown');
ok($d->find_element_by_xpath('//*[@id="date_definition_table"]//tr[1]/td[contains(text(), "2018-01-01 00:00:00")]'),'Start Date Definition is correct');
ok($d->find_element_by_xpath('//*[@id="date_definition_table"]//tr[1]/td[contains(text(), "2019-01-01 23:59:59")]'),'End Date Definition is correct');
ok($d->find_element_by_xpath('//*[@id="subscriber_profile_table"]//tr[1]/td[contains(text(), "'.$profilename.'")]',$profilename),'Name is correct');
ok($d->find_element_by_xpath('//*[@id="subscriber_profile_table"]//tr[1]/td[contains(text(), "This is a description. It describes things")]'),'Description is correct');
ok($d->find_element_by_xpath('//*[@id="subscriber_profile_table"]//tr[1]/td[contains(text(), "'.$setname.'")]',$setname),'Profile Set is correct');
ok($d->find_element_by_xpath('//*[@id="subscriber_profile_table"]//tr[1]/td[contains(text(), "'.$profilename.'")]',$profilename),'Name is correct');
ok($d->find_element_by_xpath('//*[@id="subscriber_profile_table"]//tr[1]/td[contains(text(), "Very very useful description")]'),'Description is correct');
ok($d->find_element_by_xpath('//*[@id="subscriber_profile_table"]//tr[1]/td[contains(text(), "'.$setname.'")]',$setname),'Profile Set is correct');
is($d->get_text_safe('//*[@id="content"]//div[contains(@class, "alert")]'),"Subscriber profile successfully updated",'Correct Alert was shown');
ok($d->find_element_by_xpath('//*[@id="subscriber_profile_table"]//tr/td[contains(text(), "'.$cloneprofilename.'")]//..//td[contains(text(), "1")]'),'Cloned Profile is now default');
ok($d->find_element_by_xpath('//*[@id="subscriber_profile_table"]//tr/td[contains(text(), "'.$profilename.'")]//..//td[contains(text(), "0")]'),'Original Profile is no longer default');