wordpress-mobile / wordpress-mobile/WordPress-iOS
`testStatsWidgetsDeletedAfterDefaultWPAccountRemoved` fails if the Simulator is logged in
Open
@mokagio is already working on this.
Since Oct 12, 2023.
[Type] Bug
Testing
- Dominant language
- Swift
- Stars
- 3.9k
- Forks
- 1.2k
- Avg merge
- 23h 51m
- Merged PRs (30d)
- 58
Description
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.