Repository navigation
Regression tests for #223, #360 and #1485 - #2293
skylartaylor wants to merge 4 commits into
Conversation
#223 made the title bar's Save button (and the Save Changes dialog's) commit the cell edit before saving, without a test for the button. The test types into A1, clicks Save, and reads the saved file back; with the commit_edit call removed it fails because the file lacks the value.
… edge #1485 let the field list take the pane's width so its scrollbar sits at the pane edge, without a test. With 14 short field names the scrollbar otherwise sits beside them, about 250 px from the edge.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
|
FredApps
left a comment
There was a problem hiding this comment.
Approving at 0ee8c0d. Tests only. I read the whole diff: a title-bar Save test that checks the draft in the cell being typed is committed and saved (found by hovering for the "Save (" tooltip), a Formulas ribbon test that Watch Window's label does not end below the ribbon's last label row, and a pivot field list test that its scrollbar sits at the pane edge. cargo xtask ci, both SonarCloud checks pass at this head.

Three fixes merged without a regression test. This adds one for each. Every test fails when its fix is reverted on current
mainand passes with the fix.file_menu::the_title_bar_save_button_saves_the_cell_being_typedinteraction::the_formulas_ribbon_keeps_watch_window_inside_the_ribbonpivot_pane::the_field_list_scrollbar_sits_at_the_pane_edgeTest-only: no production code changes.
The ribbon's icon, big and small buttons have no accessible name, because their text is painted. So the tests find them another way:
Giving those buttons accessible names would help screen readers and simplify tests like these. I tried it, but it makes
get_by_label("Delete" / "Cancel" / "Save" / "Copy")ambiguous in 8 existing tests, so it belongs in its own PR.These came out of an audit of fix PRs merged without tests. The other gridcraft rows needed nothing new:
cargo xtask ci: all 8 steps pass.Summary by CodeRabbit