Uh oh!
There was an error while loading. Please reload this page.
feat(toBeChecked): allow indeterminate expectation - #34269
Merged
Pavel Feldman (pavelfeldman) merged 1 commit intoJan 10, 2025
Merged
feat(toBeChecked): allow indeterminate expectation#34269Pavel Feldman (pavelfeldman) merged 1 commit into
Pavel Feldman (pavelfeldman) merged 1 commit into
Conversation
This comment has been minimized.
This comment has been minimized.
Yury Semikhatsky (yury-s)
approved these changes
Jan 9, 2025
| - `indeterminate` <[boolean]> | ||
| Asserts that the element is in the indeterminate (mixed) state. Only supported for checkboxes and radio buttons. | ||
| This option can't be true when [`param: checked`] is provided. |
There was a problem hiding this comment.
Maybe add similar note in the checked description?
| const { checked, indeterminate } = options.expectedValue; | ||
| if (indeterminate) { | ||
| if (checked !== undefined) | ||
| throw this.createStacklessError('Checked state is not defined for indeterminate checkboxes'); |
There was a problem hiding this comment.
I'd rephrase it to make it clear that checked option cannot be specified along with indeterminate.
Pavel Feldman (pavelfeldman)force-pushed
the
to_be_indeterminate
branch
from
January 9, 2025 22:26
6c5d5f8 to
c24ef66CompareContributor
Test results for "tests 1"8 flaky37562 passed, 648 skipped Merge workflow run. |
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 freeto 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.
Fixes: #33946