diff --git a/tests/htmlui_e2e_test/htmlui_e2e_test.go b/tests/htmlui_e2e_test/htmlui_e2e_test.go
index b8a11b97a..7c95af90d 100644
--- a/tests/htmlui_e2e_test/htmlui_e2e_test.go
+++ b/tests/htmlui_e2e_test/htmlui_e2e_test.go
@@ -137,10 +137,7 @@ func TestEndToEndTest(t *testing.T) {
chromedp.Click(`a[data-testid='new-snapshot']`),
tc.log("entering path:"+snap1Path),
- chromedp.SendKeys(`input[name='path']`, snap1Path),
-
- // sleep a bit to ensure all the keys in the long path get typed
- chromedp.Sleep(500*time.Millisecond),
+ chromedp.SendKeys(`input[name='path']`, snap1Path+"\t"),
tc.log("clicking estimate"),
chromedp.Click(`button[data-testid='estimate-now']`),