diff --git a/lib/NGCP/Panel/Utils/Preferences.pm b/lib/NGCP/Panel/Utils/Preferences.pm index 7a05999fca..b4259e2079 100644 --- a/lib/NGCP/Panel/Utils/Preferences.pm +++ b/lib/NGCP/Panel/Utils/Preferences.pm @@ -359,7 +359,7 @@ sub create_preference_form { } } - $form->process if $posted; + $form->process if ($posted && $form->validated); $c->stash(form => $form, aip_grp_rs => $aip_grp_rs, man_aip_grp_rs => $man_aip_grp_rs); diff --git a/t/controller_domain_selenium.t b/t/controller_domain_selenium.t index bdce5c0234..7025bd1eaa 100644 --- a/t/controller_domain_selenium.t +++ b/t/controller_domain_selenium.t @@ -12,10 +12,8 @@ $d->get_ok("$uri/logout"); #make sure we are logged out $d->get_ok("$uri/login"); $d->set_implicit_wait_timeout(1000); -$d->findtext_ok('Subscriber Sign In'); - -diag("Go to Admin Login"); -$d->findclick_ok(link_text => 'Admin'); +diag("Do Admin Login"); +$d->findtext_ok('Admin Sign In'); $d->find(name => 'username')->send_keys('administrator'); $d->find(name => 'password')->send_keys('administrator'); $d->findclick_ok(name => 'submit');