Skip to content

[Automated test] Add/Edit wine: Save with an invalid year leaves an invisible full-screen overlay (Found by automated testing, Release Tester, v1.1.0) #35

Backlog

Description

@T0liver

Found by automated testing (Release Tester, v1.1.0).

Version tested: v1.1.0 (versionName 1.1.0, versionCode 3), Android 14 emulator (API 34, google_apis x86_64), Pixel 5 screen size (1080x2340).
Test case: S10-C01 (introduced with the year validation from PR #30 / changelog 1.1.0) · Priority: P1 (blocks the screen, data loss)

Steps to reproduce

  1. Basement > tap + (Add wine). Fill in name, producer, grape and set Year to 1800 (or open Edit wine on any wine and set Year to -1).
  2. Tap Save.

Expected

Snackbar "Enter a year between 1900 and 2027." and the form stays open so the year can be corrected.

Actual

The snackbar appears, but the sheet slides away while the screen stays blocked by an invisible full-screen "Close sheet" overlay: the page looks normal but every tap is swallowed and the form cannot be seen or corrected.

  • System Back shows "Discard changes?". Cancel returns to the same invisible-overlay state; Discard throws the form away (new wine lost / edit lost).
  • Reproduced on Add wine (year 1800) and on Edit wine from the detail screen (year -1, rename to "Egri Bikavér Superior" lost).

Suspected cause (from reading the v1.1.0 source, not confirmed on device)

WineFormSheet.kt Save click calls onSave(wine, isNew) and then unconditionally runs sheetState.hide(). In WineListViewModel/WineDetailViewModel the WineSaved handler returns early on an invalid year, so isAddSheetOpen / editingWine stay set. The ModalBottomSheet therefore remains composed in the Hidden state, leaving its scrim/"Close sheet" target active. Suggest validating the year inside the sheet before hiding it (or only hiding after the ViewModel reports success), and disabling Save / showing a field error for a non-valid year.

Related

  • Accidentally closing menus #10 (closed): sheet accidentally closing; this is in the same component but a different path.
  • Also noticed (pre-existing): the Year field accepts letters and negative numbers; validation only happens on Save.

Screenshots (on request): runs/v1.1.0-2026-11-27/screenshots/S10-C01_year_minus1_save.png, S10-C01_invisible_sheet_state.png, S10-C01_after_tap_scrim.png, S10-C01_after_back.png, S10-C01_after_cancel.png, S10-C01_add_1800_save.png

Found by automated testing (Release Tester bot), 27 Nov 2026.

Activity

  1. added
    bug
    on Nov 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions