@@ -6,17 +6,18 @@ namespace PrompterOne.Web.UITests;
66internal static class EditorLargeDraftPerformanceTestData
77{
88 public const int BlockCountPerSegment = 4 ;
9+ public const int CiMaxTypingLatencyMs = 250 ;
910 public const int CiMaxHugeFollowupLongTaskMs = 550 ;
1011 public const int CiMaxHugeTypingLatencyMs = 425 ;
1112 public const int CiMaxPasteLongTaskMs = 375 ;
1213 public const string FollowupTypingText = " x" ;
1314 public const int HugeDraftMinimumLength = 250_000 ;
1415 public const int HugeDraftReadyTimeoutMs = 30_000 ;
1516 public const int LargeDraftMinimumLength = 32_000 ;
17+ public const int LocalMaxTypingLatencyMs = 100 ;
1618 public const int LocalMaxHugeFollowupLongTaskMs = 500 ;
1719 public const int LocalMaxHugeTypingLatencyMs = 250 ;
1820 public const int LocalMaxPasteLongTaskMs = 325 ;
19- public const int MaxTypingLatencyMs = 100 ;
2021 public const int NavigationTargetSegmentIndex = 14 ;
2122 public const int ObservationDelayMs = 2_200 ;
2223 private const string Author = "Managed Code" ;
@@ -37,6 +38,11 @@ internal static class EditorLargeDraftPerformanceTestData
3738 ? CiMaxHugeTypingLatencyMs
3839 : LocalMaxHugeTypingLatencyMs ;
3940
41+ public static int MaxTypingLatencyMs =>
42+ PrompterOne . Testing . TestEnvironment . IsCiEnvironment
43+ ? CiMaxTypingLatencyMs
44+ : LocalMaxTypingLatencyMs ;
45+
4046 public static int MaxPasteLongTaskMs =>
4147 PrompterOne . Testing . TestEnvironment . IsCiEnvironment
4248 ? CiMaxPasteLongTaskMs
0 commit comments