Improve validation of the test data for fragment inputs#8988
Open
Improve validation of the test data for fragment inputs#8988
Conversation
b81a509 to
52fc125
Compare
piotrp
approved these changes
Feb 24, 2026
a35bb71 to
43ba3fd
Compare
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.
Describe your changes
There was an issue with input validation during fragment testing. Fragment input parameters can be configured with additional validation rules, such as being marked as required or restricted to a predefined set of values.
In the test mechanism, test data samples are generated by the mocked source and become available only after the source is invoked. However, for fragments, validation is executed before the source is invoked. As a result, validation of fragment input parameters always failed, when the parameters were marked as required.
Solution:
Checklist before merge