public void ScrollViewerSettingSelectionDoesNotMoveFocus() { if (!PlatformConfiguration.IsOsVersionGreaterThanOrEqual(OSVersion.Redstone3)) { Log.Warning("This test is disabled on RS2 because it requires RS3+ keyboarding behavior."); return; } using (var setup = new TestSetupHelper("RadioButtons Tests")) { elements = new RadioButtonsTestPageElements(); foreach (RadioButtonsSourceLocation location in Enum.GetValues(typeof(RadioButtonsSourceLocation))) { SetSource(location); foreach (RadioButtonsSourceType type in Enum.GetValues(typeof(RadioButtonsSourceType))) { SetItemType(type); SelectByIndex(3); VerifySelectedIndex(3); VerifyRadioButtonsHasFocus(false); elements.GetReproTextBlock().Click(); VerifySelectedIndex(3); // This behavior is probably wrong, it is probably more correct for focus to be on the selected item... VerifyFocusedIndex(0); KeyboardHelper.PressKey(Key.Down); VerifySelectedFocusedIndex(1); } } } }