8000 test: [ANDROAPP-7084] update-browserstack-device by andresmr · Pull Request #4203 · dhis2/dhis2-android-capture-app · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
8000

test: [ANDROAPP-7084] update-browserstack-device #4203

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jun 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,11 @@ pipeline {
}
stage('Run UI Tests in Landscape') {
// This stage is commented out because it was unstable remove after validate.
/* when {
when {
expression {
return JOB_NAME.startsWith('android-multibranch-PUSH')
}
} */
}
environment {
BROWSERSTACK = credentials('android-browserstack')
app_apk = sh(returnStdout: true, script: 'find app/build/outputs/apk/dhis2/debug -iname "*.apk"')
Expand Down
24 changes: 0 additions & 24 deletions app/src/androidTest/java/org/dhis2/usescases/event/EventIntents.kt
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ const val EVENT_TO_SHARE_UID = "y0xoVIzBpnL"
const val TEI_EVENT_TO_DELETE_UID = "foc5zag6gbE"
const val ENROLLMENT_EVENT_DELETE_UID = "SolDyMgW3oc"
const val PROGRAM_STAGE_TO_SHARE = "EPEcjy3FWmI"
const val TEI_TO_UPDATE_UID = "LxMVYhJm3Jp"
const val ENROLLMENT_TO_UPDATE_UID = "awZ5RHoJin5"

fun prepareEventDetailsIntentAndLaunchActivity(rule: LazyActivityScenarioRule<EventCaptureActivity>) {
Intent(
Expand All @@ -37,17 +35,6 @@ fun prepareEventDetailsIntentAndLaunchActivity(rule: LazyActivityScenarioRule<Ev
}.also { rule.launch(it) }
}

fun prepareEventToDeleteIntentAndLaunchActivity(ruleTeiDashboard: LazyActivityScenarioRule<TeiDashboardMobileActivity>) {
Intent(
ApplicationProvider.getApplicationContext(),
TeiDashboardMobileActivity::class.java,
).apply {
putExtra(PROGRAM_UID, PROGRAM_TB_UID)
putExtra(TEI_UID, TEI_EVENT_TO_DELETE_UID)
putExtra(ENROLLMENT_UID, ENROLLMENT_EVENT_DELETE_UID)
}.also { ruleTeiDashboard.launch(it) }
}

fun prepareEventToShareIntentAndLaunchActivity(ruleEventDetail: LazyActivityScenarioRule<EventInitialActivity>) {
Intent(
ApplicationProvider.getApplicationContext(),
Expand All @@ -58,14 +45,3 @@ fun prepareEventToShareIntentAndLaunchActivity(ruleEventDetail: LazyActivityScen
putExtra(PROGRAM_STAGE_UID, PROGRAM_STAGE_TO_SHARE)
}.also { ruleEventDetail.launch(it) }
}

fun prepareEventToUpdateIntentAndLaunchActivity(ruleTeiDashboard: LazyActivityScenarioRule<TeiDashboardMobileActivity>) {
Intent(
ApplicationProvider.getApplicationContext(),
TeiDashboardMobileActivity::class.java,
).apply {
putExtra(PROGRAM_UID, PROGRAM_TB_UID)
putExtra(TEI_UID, TEI_TO_UPDATE_UID)
putExtra(ENROLLMENT_UID, ENROLLMENT_TO_UPDATE_UID)
}.also { ruleTeiDashboard.launch(it) }
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import org.dhis2.usescases.eventsWithoutRegistration.eventCapture.EventCaptureAc
import org.dhis2.usescases.eventsWithoutRegistration.eventInitial.EventInitialActivity
import org.dhis2.usescases.programEventDetail.ProgramEventDetailActivity
import org.dhis2.usescases.teiDashboard.TeiDashboardMobileActivity
import org.junit.Ignore
import org.junit.Rule
import org.junit.Test
import org.junit.runner.RunWith
Expand Down Expand Up @@ -43,6 +44,7 @@ class EventTest : BaseTest() {
}
}

@Ignore
@Test
fun shouldShareQRWhenClickOnShare() {
val qrList = 3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import org.hisp.dhis.android.core.D2Manager
import org.hisp.dhis.android.core.mockwebserver.ResponseController.Companion.API_ME_PATH
import org.hisp.dhis.android.core.mockwebserver.ResponseController.Companion.API_SYSTEM_INFO_PATH
import org.hisp.dhis.android.core.mockwebserver.ResponseController.Companion.GET
import org.junit.Ignore
import org.junit.Rule
import org.junit.Test

Expand All @@ -42,6 +43,7 @@ class LoginTest : BaseTest() {
D2Manager.setCredentials(KeyStoreRobot.KEYSTORE_USERNAME, KeyStoreRobot.PASSWORD)
}

@Ignore
@Test
fun loginFlow() {
mockWebServerRobot.addResponse(GET, API_ME_PATH, API_ME_RESPONSE_OK)
Expand Down
2 changes: 2 additions & 0 deletions app/src/androidTest/java/org/dhis2/usescases/main/MainTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import androidx.compose.ui.test.junit4.createComposeRule
import androidx.test.ext.junit.runners.AndroidJUnit4
import androidx.test.rule.ActivityTestRule
import org.dhis2.usescases.BaseTest
import org.junit.Ignore
import org.junit.Rule
import org.junit.Test
import org.junit.runner.RunWith
Expand Down Expand Up @@ -32,6 +33,7 @@ class MainTest : BaseTest() {
}
}

@Ignore
@Test
fun shouldNavigateToHomeWhenBackPressed() {
setupCredentials()
Expand Down
2 changes: 1 addition & 1 deletion scripts/config_jenkins.init
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
build_time_average_short=60
build_time_average_long=180
polling_interval=10
browserstack_device_list="\"Samsung Galaxy S10-9.0\""
browserstack_device_list="\"Google Pixel 7-13.0\""
browserstack_device_list_landscape="\"Samsung Galaxy Tab S6-9.0\""
browserstack_video=true
browserstack_local=false
Expand Down
0