Skip to content

fix(robot): Use element-agnostic XPath for riedit selector#432

Merged
petschki merged 2 commits intomasterfrom
fix/robot-test-riedit-selector
Mar 12, 2026
Merged

fix(robot): Use element-agnostic XPath for riedit selector#432
petschki merged 2 commits intomasterfrom
fix/robot-test-riedit-selector

Conversation

@jensens
Copy link
Member

@jensens jensens commented Mar 11, 2026

Summary

  • The recurrence widget's "Add rules" button was changed from <a name="riedit"> to <button type="button" name="riedit"> in fix(a11y): Make recurrence modal fully keyboard-accessible mockup#1533 for keyboard accessibility.
  • The robot test used //a[@name="riedit"] which no longer matches.
  • Changed to //*[@name="riedit"] so it works with both old <a> and new <button> elements.

Fixes the broken robot test reported in plone/mockup#1533 (comment).

Test plan

  • Robot test test_event_roundtrip.robot passes against current mockup

The recurrence widget's 'Add rules' button was changed from <a> to
<button> in plone/mockup#1533 for accessibility. Use //*[@name="riedit"]
instead of //a[@name="riedit"] so the test works with both old and new
mockup versions.
@mister-roboto
Copy link

@jensens thanks for creating this Pull Request and helping to improve Plone!

TL;DR: Finish pushing changes, pass all other checks, then paste a comment:

@jenkins-plone-org please run jobs

To ensure that these changes do not break other parts of Plone, the Plone test suite matrix needs to pass, but it takes 30-60 min. Other CI checks are usually much faster and the Plone Jenkins resources are limited, so when done pushing changes and all other checks pass either start all Jenkins PR jobs yourself, or simply add the comment above in this PR to start all the jobs automatically.

Happy hacking!

@jensens
Copy link
Member Author

jensens commented Mar 11, 2026

Meta failure is unrelated to this PR.

@jenkins-plone-org please run jobs

@jensens jensens requested review from petschki and thet March 11, 2026 21:40
@jensens
Copy link
Member Author

jensens commented Mar 11, 2026

first get pa.event back in shape with #433

@petschki petschki merged commit 3db6648 into master Mar 12, 2026
11 of 12 checks passed
@petschki petschki deleted the fix/robot-test-riedit-selector branch March 12, 2026 06:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants