Delay global hotkeys tiping speed to imitate real user

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
This commit is contained in:
Sebastian Martinez
2023-09-19 07:45:40 +02:00
committed by Rūdolfs Ošiņš
parent 1a7c28b6ea
commit afab097d09
+2 -1
View File
@@ -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.
{