Don't animate modal confirm dialogs if test mode is on.