Skip to content

Commit

Permalink
feat: 🧪❌ Implement the input needed by record_income() step
Browse files Browse the repository at this point in the history
- Implement the numeric input needed by the first scenario step.
- Run tests to validate that tests pass successfully through `record_income()` step.
- Tests should be still failing due to forced fail in verify function ❌.
  • Loading branch information
Jakub Sobolewski committed Jan 20, 2025
1 parent f523296 commit 1e5e58d
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion app/main.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,25 @@ box::use(
bootstrapPage,
moduleServer,
NS,
numericInput,
tagAppendAttributes,
],
)

#' @export
ui <- function(id) {
ns <- NS(id)
bootstrapPage()
bootstrapPage(
numericInput(
ns("income"),
label = "Income",
value = 0
) |>
tagAppendAttributes(
.cssSelector = "input",
"data-test" = "income"
)
)
}

#' @export
Expand Down

0 comments on commit 1e5e58d

Please sign in to comment.