Skip to content

Flaky EditCategoriesViewModel tests + undiagnosed Categories and Phrases bug #574

@cinadia

Description

@cinadia

Describe the bug
The 4 tests marked as flaky in EditCategoriesViewModelTest.kt have yet to be resolved. They expose unresolved/un-investigated bugs within the EditCategoriesViewModel.refreshCategories() function. They can cause issues with the "Categories and Phrases" page in Settings after the user adds a new custom Category.

To Reproduce
There is no known way to replicate the bug. I have only been able to produce it once. The majority of the time the bug is not present.

Expected behavior
See #532 for more details on the expected behaviour.

Actual Behavior
Adding a new category will not consistently flip the Categories and Settings page to the newly added category. Occasionally the page will flip correctly. But more often than not, it doesn't. Note, however, that this bug is very hard to reproduce, and most of the time the actual behaviour is correct.

Smartphone (please complete the following information):

  • Device: Pixel 4
  • OS: Android 12

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Ready to select

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions