Commit c72249f
authored
[Testing] Fix for flaky test(VerifyEditorFocusedEvent) in CI (dotnet#31895)
This pull request updates the `VerifyEditorFocusedEvent` test method to
be asynchronous, improving reliability by adding a short delay after
tapping the editor. This ensures the focus event is properly triggered
before the assertion is made.
**Test reliability improvement:**
* Changed `VerifyEditorFocusedEvent` in `EditorFeatureTests.cs` to be an
`async Task`, and added a `Task.Delay(100)` after tapping the editor to
ensure the focus event has time to trigger before the test assertion.1 parent 165bc49 commit c72249f
File tree
1 file changed
+6
-1
lines changed1 file changed
+6
-1
lines changedLines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
76 | 81 | | |
77 | 82 | | |
78 | 83 | | |
| |||
0 commit comments