diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 34eeda8b6c96..1985e27e2262 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -30,10 +30,10 @@ Must be exported in order to be launchable. --> @@ -76,9 +76,9 @@ --> diff --git a/android/app/src/test/kotlin/net/mullvad/mullvadvpn/viewmodel/ReportProblemModelTest.kt b/android/app/src/test/kotlin/net/mullvad/mullvadvpn/viewmodel/ReportProblemModelTest.kt index d2bd2429f3ac..f3f96b9c16f5 100644 --- a/android/app/src/test/kotlin/net/mullvad/mullvadvpn/viewmodel/ReportProblemModelTest.kt +++ b/android/app/src/test/kotlin/net/mullvad/mullvadvpn/viewmodel/ReportProblemModelTest.kt @@ -92,16 +92,20 @@ class ReportProblemModelTest { // Act, Assert viewModel.uiState.test { assertEquals(ReportProblemUiState(), awaitItem()) - viewModel.onDescriptionChanged(description) + viewModel.updateDescription(description) assertEquals(ReportProblemUiState(description = description), awaitItem()) viewModel.sendReport(email, description, true) assertEquals( - ReportProblemUiState(email, description, SendingReportUiState.Sending), + ReportProblemUiState(SendingReportUiState.Sending, email, description), awaitItem() ) assertEquals( - ReportProblemUiState(email, description, SendingReportUiState.Success(null)), + ReportProblemUiState( + SendingReportUiState.Success(null), + email, + description, + ), awaitItem() ) } @@ -118,20 +122,28 @@ class ReportProblemModelTest { // Act, Assert viewModel.uiState.test { - assertEquals(awaitItem(), ReportProblemUiState("", "", null)) - viewModel.onEmailChanged(email) + assertEquals(awaitItem(), ReportProblemUiState(null, "", "")) + viewModel.updateEmail(email) awaitItem() - viewModel.onDescriptionChanged(description) + viewModel.updateDescription(description) awaitItem() viewModel.sendReport(email, description) assertEquals( - ReportProblemUiState(email, description, SendingReportUiState.Sending), + ReportProblemUiState( + SendingReportUiState.Sending, + email, + description, + ), awaitItem() ) assertEquals( - ReportProblemUiState(email, description, SendingReportUiState.Success(email)), + ReportProblemUiState( + SendingReportUiState.Success(email), + email, + description, + ), awaitItem() ) }