From afab097d09e9b3563153d4327905bb687c1f75c2 Mon Sep 17 00:00:00 2001 From: Sebastian Martinez Date: Mon, 18 Sep 2023 10:04:42 +0200 Subject: [PATCH] Delay global hotkeys tiping speed to imitate real user Signed-off-by: Sebastian Martinez --- tests/e2e/hotkeys.spec.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/e2e/hotkeys.spec.ts b/tests/e2e/hotkeys.spec.ts index 9a3aa7d40..ecdd25ab7 100644 --- a/tests/e2e/hotkeys.spec.ts +++ b/tests/e2e/hotkeys.spec.ts @@ -4,7 +4,8 @@ import { test, expect } from "@tests/support/fixtures.js"; test("global hotkeys", async ({ page }) => { await page.goto("/"); await page.locator("body").press(`/`); - await page.keyboard.type("searchquery"); + // Delaying the input speed a bit to imitate a real user. + await page.keyboard.type("searchquery", { delay: 100 }); // Keyboard hint shows up in the search bar. {