LPS-45256 - Moving assertLiferayError, assertJavaScriptError before the action
LPS-45256 SF