Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
Signed-off-by: Manu Muñoz <[email protected]>
  • Loading branch information
mmmateos committed Dec 24, 2024
1 parent 10c7974 commit 3f5bee2
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package org.dhis2.usescases.teidashboard.robot

import android.content.Context
import androidx.compose.ui.test.ExperimentalTestApi
import androidx.compose.ui.test.assertIsDisplayed
import androidx.compose.ui.test.hasAnySibling
import androidx.compose.ui.test.hasTestTag
Expand Down Expand Up @@ -97,7 +98,9 @@ class TeiDashboardRobot(val composeTestRule: ComposeTestRule) : BaseRobot() {
composeTestRule.onNodeWithText("Enrollment cancelled").assertIsDisplayed()
}

@OptIn(ExperimentalTestApi::class)
fun clickOnEventWithTitle(title: String) {
composeTestRule.waitUntilExactlyOneExists(hasText(title))
composeTestRule.onNodeWithText(title).performClick()
}

Expand Down

0 comments on commit 3f5bee2

Please sign in to comment.