Use kbUndo when possible

This commit is contained in:
Marco Castelluccio 2026-01-22 13:12:38 +01:00
parent bdc9323b15
commit bfdcaadf7c
No known key found for this signature in database
GPG Key ID: 7EC7F621C5F89953

View File

@ -1120,9 +1120,7 @@ describe("Comment", () => {
await page.waitForSelector("#editorUndoBar", { visible: true });
// Use Ctrl+Z to undo
await kbModifierDown(page);
await page.keyboard.press("z");
await kbModifierUp(page);
await kbUndo(page);
// The undo bar should be hidden after undo
await page.waitForSelector("#editorUndoBar", { hidden: true });