Press tab instead of blurring in playwright test (#33576)

This was flaking a lot: try a regular keypress instead of trying to
blur the element (which is closer to an actual user interaction anyway).
This commit is contained in:
David Baker
2026-05-21 14:00:50 +01:00
committed by GitHub
parent e46a9bddaf
commit 4b0600f593
@@ -100,7 +100,7 @@ test.describe("Roles & Permissions room settings tab", () => {
await ourComboBox.selectOption("Custom level");
const ourPl = settings.getByRole("spinbutton", { name: user.userId });
await ourPl.fill("80");
await ourPl.blur(); // Shows a warning on
await page.keyboard.press("Tab"); // Shows a warning on
// Accept the de-op
await page.getByRole("button", { name: "Continue" }).click();