File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
WooCommerce/WooCommerceTests/Authentication Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,14 @@ final class WrongAccountErrorViewModelTests: XCTestCase {
3636 XCTAssertEqual ( primaryButtonTitle, Expectations . primaryButtonTitle)
3737 }
3838
39+ func test_viewmodel_provides_expected_title_for_right_bar_button_item( ) {
40+ // Given
41+ let viewModel = WrongAccountErrorViewModel ( siteURL: Expectations . url, showsConnectedStores: false )
42+
43+ // Then
44+ XCTAssertEqual ( viewModel. rightBarButtonItemTitle, Expectations . helpBarButtonItemTitle)
45+ }
46+
3947 func test_viewmodel_provides_expected_title_for_log_out_button( ) {
4048 // Given
4149 let viewModel = WrongAccountErrorViewModel ( siteURL: Expectations . url, showsConnectedStores: false )
@@ -100,5 +108,8 @@ private extension WrongAccountErrorViewModelTests {
100108 static let findYourConnectedEmail = NSLocalizedString ( " Find your connected email " ,
101109 comment: " Button linking to webview explaining how to find your connected email "
102110 + " Presented when logging in with a store address that does not match the account entered " )
111+
112+ static let helpBarButtonItemTitle = NSLocalizedString ( " Help " ,
113+ comment: " Help button on account mismatch error screen. " )
103114 }
104115}
You can’t perform that action at this time.
0 commit comments