controller_subscriber.t:
- if you edit subscriber settings, you will get thown back to the
subscribers menu sometimes. this patch should work around that issue by
detecting if test gets thrown out of the subscriber settings and
re-entering it again.
- some string changes
Change-Id: I1dabcc8283f61d74e75845f63ee136e0c0a3b38c
is($d->get_text_safe('//*[@id="content"]//div[contains(@class, "alert")]'),"Successfully updated subscriber","Correct Alert was shown");
#ok($d->find_element_by_xpath('//div[text()[contains(., "Subscriber status is locked")]]'), 'Message "Subscriber status is locked" was shown');
#ok($d->find_element_by_xpath('//div[text()[contains(., "Subscriber is locked for global")]]'), 'Message "Subscriber is locked for global" was shown');
if($d->find_element_by_xpath('//*[@id="masthead"]/div/div/div/h2')->get_text()eq"Subscribers"){#workaround for misbehaving ngcp panel randomly throwing test out of customer details
ok($d->find_element_by_xpath('//*[@id="subscribers_table"]//tr//td[contains(text(), "Status")]/../td[contains(text(), "locked")]'),"Status is correct");