@@ -14,6 +14,8 @@ public partial class ReadLine
1414 [ SkippableFact ]
1515 public void Inline_RenderSuggestion ( )
1616 {
17+ Skip . If ( ScreenReaderModeEnabled , "Inline predictions are not supported in screen reader mode." ) ;
18+
1719 TestSetup ( KeyMode . Cmd ,
1820 new KeyHandler ( "Ctrl+f" , PSConsoleReadLine . ForwardWord ) ) ;
1921 using var disp = SetPrediction ( PredictionSource . History , PredictionViewStyle . InlineView ) ;
@@ -92,6 +94,8 @@ public void Inline_RenderSuggestion()
9294 [ SkippableFact ]
9395 public void Inline_CustomKeyBindingsToAcceptSuggestion ( )
9496 {
97+ Skip . If ( ScreenReaderModeEnabled , "Inline predictions are not supported in screen reader mode." ) ;
98+
9599 TestSetup ( KeyMode . Cmd ,
96100 new KeyHandler ( "Alt+g" , PSConsoleReadLine . AcceptSuggestion ) ,
97101 new KeyHandler ( "Alt+f" , PSConsoleReadLine . AcceptNextSuggestionWord ) ) ;
@@ -156,6 +160,8 @@ public void Inline_CustomKeyBindingsToAcceptSuggestion()
156160 [ SkippableFact ]
157161 public void Inline_AcceptNextSuggestionWordCanAcceptMoreThanOneWords ( )
158162 {
163+ Skip . If ( ScreenReaderModeEnabled , "Inline predictions are not supported in screen reader mode." ) ;
164+
159165 TestSetup ( KeyMode . Cmd ,
160166 new KeyHandler ( "Ctrl+f" , PSConsoleReadLine . ForwardWord ) ,
161167 new KeyHandler ( "Alt+f" , PSConsoleReadLine . AcceptNextSuggestionWord ) ) ;
@@ -192,6 +198,8 @@ public void Inline_AcceptNextSuggestionWordCanAcceptMoreThanOneWords()
192198 [ SkippableFact ]
193199 public void Inline_AcceptSuggestionWithSelection ( )
194200 {
201+ Skip . If ( ScreenReaderModeEnabled , "Inline predictions are not supported in screen reader mode." ) ;
202+
195203 TestSetup ( KeyMode . Cmd ,
196204 new KeyHandler ( "Ctrl+f" , PSConsoleReadLine . ForwardWord ) ) ;
197205 using var disp = SetPrediction ( PredictionSource . History , PredictionViewStyle . InlineView ) ;
@@ -261,6 +269,8 @@ public void Inline_DisablePrediction()
261269 [ SkippableFact ]
262270 public void Inline_SetPredictionColor ( )
263271 {
272+ Skip . If ( ScreenReaderModeEnabled , "Inline predictions are not supported in screen reader mode." ) ;
273+
264274 TestSetup ( KeyMode . Cmd ) ;
265275 var predictionColor = MakeCombinedColor ( ConsoleColor . DarkYellow , ConsoleColor . Yellow ) ;
266276 var predictionColorToCheck = Tuple . Create ( ConsoleColor . DarkYellow , ConsoleColor . Yellow ) ;
@@ -288,6 +298,8 @@ public void Inline_SetPredictionColor()
288298 [ SkippableFact ]
289299 public void Inline_HistoryEditsCanUndoProperly ( )
290300 {
301+ Skip . If ( ScreenReaderModeEnabled , "Inline predictions are not supported in screen reader mode." ) ;
302+
291303 TestSetup ( KeyMode . Cmd ,
292304 new KeyHandler ( "Ctrl+f" , PSConsoleReadLine . ForwardWord ) ) ;
293305 SetHistory ( "git checkout -b branch origin/bbbb" ) ;
@@ -320,6 +332,8 @@ public void Inline_HistoryEditsCanUndoProperly()
320332 [ SkippableFact ]
321333 public void Inline_AcceptSuggestionInVIMode ( )
322334 {
335+ Skip . If ( ScreenReaderModeEnabled , "Inline predictions are not supported in screen reader mode." ) ;
336+
323337 TestSetup ( KeyMode . Vi ) ;
324338 using var disp = SetPrediction ( PredictionSource . History , PredictionViewStyle . InlineView ) ;
325339
@@ -367,6 +381,8 @@ public void Inline_AcceptSuggestionInVIMode()
367381 [ SkippableFact ]
368382 public void ViDefect2408 ( )
369383 {
384+ Skip . If ( ScreenReaderModeEnabled , "Inline predictions are not supported in screen reader mode." ) ;
385+
370386 TestSetup ( KeyMode . Vi ) ;
371387 using var disp = SetPrediction ( PredictionSource . History , PredictionViewStyle . InlineView ) ;
372388
@@ -460,6 +476,8 @@ internal static List<PredictionResult> MockedPredictInput(Ast ast, Token[] token
460476 [ SkippableFact ]
461477 public void Inline_PluginSource_Acceptance ( )
462478 {
479+ Skip . If ( ScreenReaderModeEnabled , "Inline predictions are not supported in screen reader mode." ) ;
480+
463481 // Using the 'Plugin' source will make PSReadLine get prediction from the plugin only.
464482 TestSetup ( KeyMode . Cmd ,
465483 new KeyHandler ( "Ctrl+f" , PSConsoleReadLine . ForwardWord ) ) ;
@@ -534,6 +552,8 @@ public void Inline_PluginSource_Acceptance()
534552 [ SkippableFact ]
535553 public void Inline_HistoryAndPluginSource_Acceptance ( )
536554 {
555+ Skip . If ( ScreenReaderModeEnabled , "Inline predictions are not supported in screen reader mode." ) ;
556+
537557 // Using the 'HistoryAndPlugin' source will make PSReadLine get prediction from the plugin and history,
538558 // and plugin takes precedence.
539559 TestSetup ( KeyMode . Cmd ,
@@ -798,6 +818,8 @@ public void Inline_HistoryAndPluginSource_ExecutionStatus()
798818 [ SkippableFact ]
799819 public void Inline_TruncateVeryLongSuggestion ( )
800820 {
821+ Skip . If ( ScreenReaderModeEnabled , "Inline predictions are not supported in screen reader mode." ) ;
822+
801823 TestSetup ( new TestConsole ( keyboardLayout : _ , width : 10 , height : 2 ) , KeyMode . Cmd ) ;
802824 using var disp = SetPrediction ( PredictionSource . History , PredictionViewStyle . InlineView ) ;
803825
0 commit comments