mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-15 19:30:38 +08:00
Delay global hotkeys tiping speed to imitate real user
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
This commit is contained in:
@@ -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.
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user