mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-10-31 16:24:11 +00:00
Remove the Learn More URL for the sliding sync proxy. (#4070)
This commit is contained in:
@@ -92,7 +92,7 @@ class ServerSelectionScreenViewModelTests: XCTestCase {
|
||||
setupViewModel(authenticationFlow: .login)
|
||||
XCTAssertFalse(context.viewState.isShowingFooterError, "There should not be an error message for a new view model.")
|
||||
XCTAssertNil(context.viewState.footerErrorMessage, "There should not be an error message for a new view model.")
|
||||
XCTAssertEqual(String(context.viewState.footerMessage.characters), L10n.screenChangeServerFormNotice(L10n.actionLearnMore),
|
||||
XCTAssertEqual(String(context.viewState.footerMessage), L10n.screenChangeServerFormNotice,
|
||||
"The standard footer message should be shown.")
|
||||
|
||||
// When attempting to discover an invalid server
|
||||
@@ -104,7 +104,7 @@ class ServerSelectionScreenViewModelTests: XCTestCase {
|
||||
// Then the footer should now be showing an error.
|
||||
XCTAssertTrue(context.viewState.isShowingFooterError, "The error message should be stored.")
|
||||
XCTAssertNotNil(context.viewState.footerErrorMessage, "The error message should be stored.")
|
||||
XCTAssertNotEqual(String(context.viewState.footerMessage.characters), L10n.screenChangeServerFormNotice(L10n.actionLearnMore),
|
||||
XCTAssertNotEqual(String(context.viewState.footerMessage), L10n.screenChangeServerFormNotice,
|
||||
"The error message should be shown.")
|
||||
|
||||
// And when clearing the error.
|
||||
@@ -115,7 +115,7 @@ class ServerSelectionScreenViewModelTests: XCTestCase {
|
||||
|
||||
// Then the error message should now be removed.
|
||||
XCTAssertNil(context.viewState.footerErrorMessage, "The error message should have been cleared.")
|
||||
XCTAssertEqual(String(context.viewState.footerMessage.characters), L10n.screenChangeServerFormNotice(L10n.actionLearnMore),
|
||||
XCTAssertEqual(String(context.viewState.footerMessage), L10n.screenChangeServerFormNotice,
|
||||
"The standard footer message should be shown again.")
|
||||
}
|
||||
|
||||
@@ -131,7 +131,6 @@ class ServerSelectionScreenViewModelTests: XCTestCase {
|
||||
|
||||
viewModel = ServerSelectionScreenViewModel(authenticationService: service,
|
||||
authenticationFlow: authenticationFlow,
|
||||
slidingSyncLearnMoreURL: ServiceLocator.shared.settings.slidingSyncLearnMoreURL,
|
||||
userIndicatorController: UserIndicatorControllerMock())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user