test: Infnite layout loop on SystemFocusVisual

This commit is contained in:
Martin Zikmund 2024-10-04 11:38:23 +02:00
Родитель 9817a077de
Коммит 0e8f01ba3b
1 изменённых файлов: 10 добавлений и 0 удалений

Просмотреть файл

@ -177,5 +177,15 @@ public class Given_SystemFocusVisual
Assert.AreEqual(focusPoint.X, buttonPoint.X);
Assert.AreEqual(focusPoint.Y, buttonPoint.Y);
}
[TestMethod]
[RequiresFullWindow]
public async Task When_Keyboard_Focus()
{
// This sequence on full window test previously caused infinite layout loop
var button = new Button() { Content = "Test" };
await UITestHelper.Load(button);
button.Focus(FocusState.Keyboard);
}
}
#endif