wordpress-mobile / wordpress-mobile/WordPress-iOS

`testStatsWidgetsDeletedAfterDefaultWPAccountRemoved` fails if the Simulator is logged in

Open
#21,742 1 comment 0 reactions 1 assignee View on GitHub

@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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.