Fix action-related deprecation warnings during tests.
Review Request #14712 — Created Nov. 28, 2025 and updated — Latest diff uploaded
Previous changes for the actions rework introduced new deprecations.
This change modernizes some of our remaining actions in unit tests in
order to avoid some of them, and catches the rest where appropriate.It also fixes a bug in
ActionPlacement.depththat hits a deprecated
code path by checking the action's legacydepthproperty and not the
ActionPlacement.depth.
All unit tests pass.
Verified that there are no longer any deprecations from action code.