Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testStatsWidgetsDeletedAfterDefaultWPAccountRemoved fails if the Simulator is logged in #21742

Open
mokagio opened this issue Oct 12, 2023 · 0 comments
Assignees
Labels
Testing Unit and UI Tests and Tooling [Type] Bug

Comments

@mokagio
Copy link
Contributor

mokagio commented Oct 12, 2023

testStatsWidgetsDeletedAfterDefaultWPAccountRemoved from StatsWidgetsStoreTests will fail if the Simulator is logged in.

This tests verifies how StatsWidgetsStore handles the .WPAccountDefaultWordPressComAccountChanged notification. However, the implementation uses AccountHelper.isLoggedIn, which accesses ContextManager.sharedInstance() instead of the CoreDataStack implementation set in the tests.

@mokagio mokagio self-assigned this Oct 12, 2023
@mokagio mokagio added the Testing Unit and UI Tests and Tooling label Oct 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Testing Unit and UI Tests and Tooling [Type] Bug
Projects
None yet
Development

No branches or pull requests

1 participant