Enhance test input documentation with conditional visibility feature.#101
Open
projkov wants to merge 1 commit intoinferno-framework:mainfrom
Open
Enhance test input documentation with conditional visibility feature.#101projkov wants to merge 1 commit intoinferno-framework:mainfrom
projkov wants to merge 1 commit intoinferno-framework:mainfrom
Conversation
karlnaden
requested changes
Feb 12, 2026
| - `description:` - a description which is displayed in the UI. | ||
| - `type:` - controls the type of HTML input element used in the UI. Currently | ||
| there are 5 possible values: | ||
| there are 6 possible values: |
Contributor
There was a problem hiding this comment.
Looks like the count was off before
Suggested change
| there are 6 possible values: | |
| there are 7 possible values: |
| end | ||
| ``` | ||
|
|
||
| ### Conditional visibility for inputs |
Contributor
There was a problem hiding this comment.
Suggested change
| ### Conditional visibility for inputs | |
| ### Conditional UI visibility for inputs |
| Locking an input can force it to use a value from a previous test's output, or | ||
| the default value. | ||
| - `hidden:` - (**default: false**) hide the input from the UI. Must be used with either `optional: true` or `locked: true`. | ||
| - `enable_when` - (**optional**) adds conditional visibility for inputs. It's a hash with `input_name` and `value`. |
Contributor
There was a problem hiding this comment.
Suggested change
| - `enable_when` - (**optional**) adds conditional visibility for inputs. It's a hash with `input_name` and `value`. | |
| - `enable_when` - (**optional**) adds conditional UI visibility for the input, causing it to be displayed only when the indicated input has the specified value. The value is a hash with keys `input_name` and `value`. |
| ``` | ||
|
|
||
| ### Conditional visibility for inputs | ||
| Inputs can be shown or hidden based on the value of another input using an `enable_when` condition. We recommend implementing conditional visibility based on **Radio** or **Select** inputs. |
Contributor
There was a problem hiding this comment.
Provide a bit of detail on the semantics and a bit of context for the example and what it is doing.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updates the docs site for the
enable-when-docswork: documents theenable_wheninput option and conditional visibility, adds the missingselectinput type, and fixes a few doc typos/formatting issues.Changes
Inputs and outputs (
docs/writing-tests/test-inputs-outputs.md)enable_whenand when to use it (e.g. with Radio or Select inputs), with a full example (radio +enable_whenfor bundle source).enable_whenin the input options list as (optional) withinput_nameandvalue.'select'type to the list and update the count to "6 possible values."'checkbox→'checkbox', double space intitle:description, trailing spaces in AuthInfo code blocks, and list continuation indentation under "Behind the Scenes."Other
docs/concepts.md: Fix unclosed quote in figurealt("Diagram of Inferno Deployment→"Diagram of Inferno Deployment")..tool-versions: Ensure newline at end of file.Gemfile.lock: Addarm64-darwin-25platform (from localbundle install).