Fluent UI tests for Checkbox#13
Fluent UI tests for Checkbox#13vidya-mb wants to merge 3 commits intodipeshmsft:fluent/ui-tests-controlfrom
Conversation
| public void Checkbox_Indeterminate_Test(ColorMode colorMode) | ||
| { | ||
| SetColorMode(TestWindow, colorMode); | ||
| TestCheckbox.IsChecked = null; |
There was a problem hiding this comment.
For InDeterminate we will need to set IsThreeState=true should be set too if I am not wrong.
There was a problem hiding this comment.
Set IsThreeState=true for indeterminate state.
| part_checkbox.Cursor.Should().Be(expectedProperties["CheckBox_Cursor"]); | ||
| part_checkbox.IsTabStop.Should().Be((bool)expectedProperties["Checkbox_IsTabStop"]); | ||
| //rootborder | ||
| part_RootBorder.Should().NotBeNull(); |
There was a problem hiding this comment.
We will need to check Background, BorderBrush and BorderThickness for part_RootBorder as well as in the style RootBorder has template bindings to Background, BorderBrush, etc.
There was a problem hiding this comment.
Added validation for properties of part_RootBorder.
|
|
||
| part_ContentPresenter.RecognizesAccessKey.Should().Be((bool)expectedProperties["ContentPresenter_RecognizesAccessKey"]); | ||
| part_ContentPresenter.HorizontalAlignment.Should().Be((HorizontalAlignment)expectedProperties["ContentPresenter_HorizontalAlignment"]); | ||
| part_ContentPresenter.VerticalAlignment.Should().Be((VerticalAlignment)expectedProperties["ContentPresenter_VerticalAlignment"]); |
There was a problem hiding this comment.
contentPresenter Foreground should also be checked as in WinUI style Foreground has a TemplateBinding to ContentPresenter's Foreground.
There was a problem hiding this comment.
ContentPresenter does not support foreground.
Basic fluent UI tests for Checkbox.