controller_customer.t:
- check if test is currently in wrong menu
- if yes, go back to customer details menu manually
- if no, continue as usual
- also check if customer details section in customer needs to be collapsed or
not
Change-Id: I17ae6f279cb37d46de86701668f5517b56c8ac3e
(cherry picked from commit 9242d9286d)
is($d->find_element_by_xpath('//*[@id="content"]//div[contains(@class, "alert")]')->get_text(),'Contact successfully changed',"Correct Alert was shown");
if($d->find_element_by_xpath('//*[@id="masthead"]/div/div/div/h2')->get_text()eq"Customers"){#workaround for misbehaving ngcp panel randomly throwing test out of customer details
ok($d->wait_for_text('//*[@id="collapse_contact"]//table//tr//td[contains(text(), "Email")]/../td[2]',$contactmail),"Email is correct");
ok($d->find_element_by_xpath('//*[@id="collapse_contact"]//table//tr//td[contains(text(), "Name")]/../td[contains(text(), "Alice")]'),"Name is correct");
ok($d->find_element_by_xpath('//*[@id="collapse_contact"]//table//tr//td[contains(text(), "Company")]/../td[contains(text(), "Sipwise")]'),"Company is correct");