File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
WooCommerce/WooCommerceTests/Authentication Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -286,7 +286,7 @@ final class WrongAccountErrorViewModelTests: XCTestCase {
286286 XCTAssertTrue ( MockAuthenticator . siteCredentialLoginTriggered)
287287 }
288288
289- func test_primary_button_tap_presents_fancy_alert_if_credentials_are_not_present_and_fetched_site_info_returns_wpcom_site ( ) {
289+ func test_primary_button_tap_does_not_trigger_site_credential_login_if_credentials_are_not_present_and_fetched_site_info_returns_wpcom_site ( ) {
290290 // Given
291291 let siteInfo = WordPressComSiteInfo ( remote: [ " isWordPressDotCom " : true ] )
292292 MockAuthenticator . setMockSiteInfo ( siteInfo)
@@ -295,19 +295,14 @@ final class WrongAccountErrorViewModelTests: XCTestCase {
295295 siteCredentials: nil ,
296296 authenticatorType: MockAuthenticator . self,
297297 onJetpackSetupCompletion: { _, _ in } )
298- let viewController = ULAccountMismatchViewController ( viewModel : viewModel )
298+ let viewController = UIViewController ( )
299299
300300 // When
301301 viewModel. viewDidLoad ( viewController)
302302 viewModel. didTapPrimaryButton ( in: viewController)
303303
304304 // Then
305305 XCTAssertFalse ( MockAuthenticator . siteCredentialLoginTriggered)
306-
307- waitUntil { // waiting for a bit since the presentation involves animation
308- viewController. presentedViewController != nil
309- }
310- XCTAssertTrue ( viewController. presentedViewController is FancyAlertViewController )
311306 }
312307
313308 func test_failure_to_fetch_connection_url_is_tracked( ) throws {
You can’t perform that action at this time.
0 commit comments