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:
@@ -100,7 +100,7 @@ test.describe("Roles & Permissions room settings tab", () => {
|
|||||||
await ourComboBox.selectOption("Custom level");
|
await ourComboBox.selectOption("Custom level");
|
||||||
const ourPl = settings.getByRole("spinbutton", { name: user.userId });
|
const ourPl = settings.getByRole("spinbutton", { name: user.userId });
|
||||||
await ourPl.fill("80");
|
await ourPl.fill("80");
|
||||||
await ourPl.blur(); // Shows a warning on
|
await page.keyboard.press("Tab"); // Shows a warning on
|
||||||
|
|
||||||
// Accept the de-op
|
// Accept the de-op
|
||||||
await page.getByRole("button", { name: "Continue" }).click();
|
await page.getByRole("button", { name: "Continue" }).click();
|
||||||
|
|||||||
Reference in New Issue
Block a user