test pressing enter key on dialogs
 * should lead to an error message