controller_subscriber:
- new test will lock and unlock subscriber by checking subscriber details
- checking for "subscriber is locked" messages will be activated later,
since those still have some issues
Change-Id: Idde45cc0ce957dd3d18ffa74c88f231f31fbcd9e
is($d->get_text('//*[@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');
ok($d->find_element_by_xpath('//*[@id="subscribers_table"]//tr//td[contains(text(), "Status")]/../td[contains(text(), "locked")]'),"Status is correct");
ok($d->find_element_by_xpath('//*[@id="subscribers_table"]//tr//td[contains(text(), "Status")]/../td[contains(text(), "locked")]'),"Status is correct");
is($d->get_text('//*[@id="content"]//div[contains(@class, "alert")]'),"Successfully updated subscriber","Correct Alert was shown");
ok($d->find_element_by_xpath('//*[@id="subscribers_table"]//tr//td[contains(text(), "Status")]/../td[contains(text(), "active")]'),"Status is correct");