sergio-sastre / AndroidUiTestingUtils

A set of TestRules, ActivityScenarios and utils to facilitate UI and screenshot testing under given configurations: FontSizes, Locales...
MIT License
287 stars 14 forks source link

UiMode not reset after calling ActivityScenarioConfigurator.forActivity().setUiMode() or ActivityScenarioForActivityRule with UiMode #27

Closed sergio-sastre closed 1 year ago

sergio-sastre commented 1 year ago

Describe the bug UiMode not reset after calling ActivityScenarioConfigurator.forActivity().setUiMode(). So any other subsequent test (does not need to be Activity, could be Fragment, View, Composable...) keeps that UiMode if not overriden.

Environment The setup in which the bug is reproducible:

Expected behavior The UiMode should be reset once the test finishes.