diff --git a/src/Components/test/E2ETest/Tests/FormsInputDateTest.cs b/src/Components/test/E2ETest/Tests/FormsInputDateTest.cs index 17903d3887ec..f158dc66a147 100644 --- a/src/Components/test/E2ETest/Tests/FormsInputDateTest.cs +++ b/src/Components/test/E2ETest/Tests/FormsInputDateTest.cs @@ -108,9 +108,9 @@ public void InputDateInteractsWithEditContext_TimeInput() Browser.Equal("modified valid", () => departureTimeInput.GetDomAttribute("class")); // Can become invalid - // Stricly speaking the following is equivalent to the empty state, because that's how incomplete input is represented + // Strictly speaking the following is equivalent to the empty state, because that's how incomplete input is represented // We don't know of any way to produce a different (non-empty-equivalent) state using UI gestures, so there's nothing else to test - departureTimeInput.SendKeys($"20{Keys.Backspace}\t"); + SetDate(departureTimeInput, $"20{Keys.Backspace}\t"); Browser.Equal("modified invalid", () => departureTimeInput.GetDomAttribute("class")); Browser.Equal(new[] { "The DepartureTime field must be a time." }, messagesAccessor); }