@@ -258,28 +258,28 @@ class AssociationProfileTest : TearDown() {
258
258
assert (associationViewModel.selectedAssociation.value!! .followersCount == currentCount)
259
259
}
260
260
261
- @Test
262
- fun testFollowOffline () {
263
- val context: Context = ApplicationProvider .getApplicationContext()
264
- composeTestRule.setContent {
265
- AssociationProfileScaffold (
266
- navigationAction, userViewModel, eventViewModel, associationViewModel) {}
267
- }
268
-
269
- val currentCount = associationViewModel.selectedAssociation.value!! .followersCount
270
-
271
- composeTestRule
272
- .onNodeWithTag(AssociationProfileTestTags .FOLLOW_BUTTON )
273
- .assertDisplayComponentInScroll()
274
- composeTestRule
275
- .onNodeWithText(context.getString(R .string.association_follow))
276
- .assertIsDisplayed()
277
-
278
- composeTestRule.onNodeWithTag(AssociationProfileTestTags .FOLLOW_BUTTON ).performClick()
279
- assert (! userViewModel.user.value?.followedAssociations!! .contains(associations.first().uid))
280
- assert (associationViewModel.selectedAssociation.value!! .followersCount == currentCount)
261
+ @Test
262
+ fun testFollowOffline () {
263
+ val context: Context = ApplicationProvider .getApplicationContext()
264
+ composeTestRule.setContent {
265
+ AssociationProfileScaffold (
266
+ navigationAction, userViewModel, eventViewModel, associationViewModel) {}
281
267
}
282
268
269
+ val currentCount = associationViewModel.selectedAssociation.value!! .followersCount
270
+
271
+ composeTestRule
272
+ .onNodeWithTag(AssociationProfileTestTags .FOLLOW_BUTTON )
273
+ .assertDisplayComponentInScroll()
274
+ composeTestRule
275
+ .onNodeWithText(context.getString(R .string.association_follow))
276
+ .assertIsDisplayed()
277
+
278
+ composeTestRule.onNodeWithTag(AssociationProfileTestTags .FOLLOW_BUTTON ).performClick()
279
+ assert (! userViewModel.user.value?.followedAssociations!! .contains(associations.first().uid))
280
+ assert (associationViewModel.selectedAssociation.value!! .followersCount == currentCount)
281
+ }
282
+
283
283
@Test
284
284
fun testButtonBehavior () {
285
285
composeTestRule.setContent {
@@ -306,7 +306,6 @@ class AssociationProfileTest : TearDown() {
306
306
assertSnackBarIsDisplayed()
307
307
}
308
308
309
-
310
309
private fun assertSnackBarIsDisplayed () {
311
310
composeTestRule.onNodeWithTag(AssociationProfileTestTags .SNACKBAR_HOST ).assertIsDisplayed()
312
311
composeTestRule.onNodeWithTag(AssociationProfileTestTags .SNACKBAR_ACTION_BUTTON ).performClick()
0 commit comments