From f409b1f4e11817e62283d33b714b83961585d2e7 Mon Sep 17 00:00:00 2001 From: Marcin <133694481+m7pr@users.noreply.github.com> Date: Tue, 16 Apr 2024 11:34:13 +0200 Subject: [PATCH] 1203 rename `TealAppDriver$set_module_input` to `TealAppDriver$set_active_module_input` (#1204) Fixes #1203 --------- Co-authored-by: 27856297+dependabot-preview[bot]@users.noreply.github.com <27856297+dependabot-preview[bot]@users.noreply.github.com> --- R/TealAppDriver.R | 2 +- man/TealAppDriver.Rd | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/R/TealAppDriver.R b/R/TealAppDriver.R index 0d05b890c1..6ef0094071 100644 --- a/R/TealAppDriver.R +++ b/R/TealAppDriver.R @@ -224,7 +224,7 @@ TealAppDriver <- R6::R6Class( # nolint: object_name. #' @param ... Additional arguments to be passed to `shinytest2::AppDriver$set_inputs` #' #' @return The `TealAppDriver` object invisibly. - set_module_input = function(input_id, value, ...) { + set_active_module_input = function(input_id, value, ...) { checkmate::check_string(input_id) checkmate::check_string(value) self$set_input( diff --git a/man/TealAppDriver.Rd b/man/TealAppDriver.Rd index 3df31be08d..e4b098c09f 100644 --- a/man/TealAppDriver.Rd +++ b/man/TealAppDriver.Rd @@ -33,7 +33,7 @@ driving a teal application for performing interactions for \code{shinytest2} tes \item \href{#method-TealAppDriver-active_filters_ns}{\code{TealAppDriver$active_filters_ns()}} \item \href{#method-TealAppDriver-get_active_module_input}{\code{TealAppDriver$get_active_module_input()}} \item \href{#method-TealAppDriver-get_active_module_output}{\code{TealAppDriver$get_active_module_output()}} -\item \href{#method-TealAppDriver-set_module_input}{\code{TealAppDriver$set_module_input()}} +\item \href{#method-TealAppDriver-set_active_module_input}{\code{TealAppDriver$set_active_module_input()}} \item \href{#method-TealAppDriver-get_active_filter_vars}{\code{TealAppDriver$get_active_filter_vars()}} \item \href{#method-TealAppDriver-is_visible}{\code{TealAppDriver$is_visible()}} \item \href{#method-TealAppDriver-get_active_data_filters}{\code{TealAppDriver$get_active_data_filters()}} @@ -349,13 +349,13 @@ The value of the shiny output. } } \if{html}{\out{
}} -\if{html}{\out{}} -\if{latex}{\out{\hypertarget{method-TealAppDriver-set_module_input}{}}} -\subsection{Method \code{set_module_input()}}{ +\if{html}{\out{}} +\if{latex}{\out{\hypertarget{method-TealAppDriver-set_active_module_input}{}}} +\subsection{Method \code{set_active_module_input()}}{ Set the input in the module in the \code{teal} app. This function will only set inputs in the name space of the current active teal module. \subsection{Usage}{ -\if{html}{\out{
}}\preformatted{TealAppDriver$set_module_input(input_id, value, ...)}\if{html}{\out{
}} +\if{html}{\out{
}}\preformatted{TealAppDriver$set_active_module_input(input_id, value, ...)}\if{html}{\out{
}} } \subsection{Arguments}{