Skip to content

Commit 9efaf7d

Browse files
committed
chore: add comments
1 parent 8c36edf commit 9efaf7d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/src/androidTest/java/com/android/unio/components/event/EventSaveButtonTest.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ class EventSaveButtonTest : TearDown() {
9696

9797
@Test
9898
fun testEventCardSaveAndUnsaveEventOnline() {
99-
var indicator = false
99+
var indicator = false //saved indicator
100100
every { concurrentEventUserRepositoryFirestore.updateSave(any(), any(), any(), any()) } answers
101101
{
102102
val onSuccess = args[2] as () -> Unit
@@ -108,12 +108,12 @@ class EventSaveButtonTest : TearDown() {
108108
composeTestRule.onNodeWithTag(EventDetailsTestTags.SAVE_BUTTON).assertExists().performClick()
109109

110110
Thread.sleep(500)
111-
assert(indicator)
111+
assert(indicator) // asserts event is saved
112112

113-
verify { NotificationWorker.schedule(any(), any()) }
113+
verify { NotificationWorker.schedule(any(), any()) } // asserts that a notification is scheduled
114114

115115
composeTestRule.onNodeWithTag(EventDetailsTestTags.SAVE_BUTTON).assertExists().performClick()
116116
composeTestRule.waitForIdle()
117-
assert(!indicator)
117+
assert(!indicator) // asserts event is unsaved
118118
}
119119
}

0 commit comments

Comments
 (0)