You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@zeppelin.apache.org by "voidmatcha (via GitHub)" <gi...@apache.org> on 2026/07/17 15:33:51 UTC

[PR] [ZEPPELIN-6544] Harden keyboard-shortcut e2e helpers against silent passes [zeppelin]

voidmatcha opened a new pull request, #5315:
URL: https://github.com/apache/zeppelin/pull/5315

   ### What is this PR for?
   Follow-up to ZEPPELIN-6536 (#5304). A cross-review of the merged keyboard-shortcut suite found four silent-pass risks in the helpers; this PR closes them:
   
   - `pressShortcutFromHostUntil` now polls for the press's effect before retrying, so a slow toggle is not double-pressed and the loop cannot return on the transient state between two in-flight effects.
   - The clear-output test asserts the result is visible before pressing; previously a no-output run let the helper skip the press entirely.
   - InsertAbove/InsertBelow emptiness assertions now gate on the editor being rendered (`waitForEditorRendered`); an unrendered editor reads as `''` and matched vacuously.
   - `setCodeEditorContent` compares normalized equality instead of containment, so stale fixture text fails at seeding time.
   
   Test-only change; no product code touched.
   
   ### What type of PR is it?
   Improvement
   
   ### What is the Jira issue?
   https://issues.apache.org/jira/browse/ZEPPELIN-6544
   
   ### How should this be tested?
   CI. The suite passed 10x per browser project with `--retries=0` before these changes; the hardening tightens assertions without altering test intent.
   
   ### Questions:
   * Does the license files need to update? No
   * Is there breaking changes for older versions? No
   * Does this needs documentation? No


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@zeppelin.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [ZEPPELIN-6544] Harden keyboard-shortcut e2e helpers against silent passes [zeppelin]

Posted by "tbonelee (via GitHub)" <gi...@apache.org>.
tbonelee merged PR #5315:
URL: https://github.com/apache/zeppelin/pull/5315


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@zeppelin.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [ZEPPELIN-6544] Harden keyboard-shortcut e2e helpers against silent passes [zeppelin]

Posted by "voidmatcha (via GitHub)" <gi...@apache.org>.
voidmatcha commented on PR #5315:
URL: https://github.com/apache/zeppelin/pull/5315#issuecomment-5011698768

   Ran the full keyboard-shortcut suite 10x across all browser projects (retries=0), all green:
   https://github.com/voidmatcha/zeppelin/actions/runs/29631108745
   
   Shortcuts are still driven by real key events; only the fixture text is seeded through the notebook REST API (the same way notebooks are already created). Typing directly into Monaco let Firefox's autocomplete corrupt the seeded text, so this also removes the previous per-browser branching and unifies seeding into one path. Real typing itself is still exercised by the cursor-move, tab-indentation, and autocomplete tests. Content assertions read persisted server state to avoid Monaco's non-deterministic whitespace rendering.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@zeppelin.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [ZEPPELIN-6544] Harden keyboard-shortcut e2e helpers against silent passes [zeppelin]

Posted by "tbonelee (via GitHub)" <gi...@apache.org>.
tbonelee commented on PR #5315:
URL: https://github.com/apache/zeppelin/pull/5315#issuecomment-5012213902

   Merged into master


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@zeppelin.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org