Skip to content
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

test: [ANDROAPP-6609] Refactor program rules UI form's test to integration tests #3651

Merged
merged 3 commits into from
May 24, 2024
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
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package org.dhis2.usescases
import org.dhis2.usescases.flow.searchFlow.SearchFlowTest
import org.dhis2.usescases.flow.syncFlow.SyncFlowTest
import org.dhis2.usescases.flow.teiFlow.TeiFlowTest
import org.dhis2.usescases.form.FormTest
import org.junit.runner.RunWith
import org.junit.runners.Suite

Expand All @@ -12,6 +11,5 @@ import org.junit.runners.Suite
SearchFlowTest::class,
SyncFlowTest::class,
TeiFlowTest::class,
FormTest::class
)
class FlowTestsSuite
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import androidx.test.rule.ActivityTestRule
import org.dhis2.common.filters.filterRobotCommon
import org.dhis2.usescases.BaseTest
import org.dhis2.usescases.flow.syncFlow.robot.eventWithoutRegistrationRobot
import org.dhis2.usescases.form.formRobot
import org.dhis2.usescases.main.AVOID_SYNC
import org.dhis2.usescases.main.MainActivity
import org.dhis2.usescases.main.homeRobot
Expand Down Expand Up @@ -146,12 +145,13 @@ class FilterTest : BaseTest() {
eventWithoutRegistrationRobot(composeTestRule) {
clickOnEventAtPosition(0)
}
formRobot(composeTestRule) {
// Commented because FormRobot class wah eliminated as FormTest was also eliminated
/*formRobot(composeTestRule) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if this is no longer needed maybe we can remove it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think so, because this test is going to be looked at at some point. So it's better to leave it as it is so when someone does look into this, knows how the tests really is coded.

clickOnSelectOption(1, 1)
pressBack()
pressBack()
pressBack()
}
}*/
homeRobot {
openFilters()
}
Expand Down
20 changes: 0 additions & 20 deletions app/src/androidTest/java/org/dhis2/usescases/form/FormIntents.kt

This file was deleted.

156 changes: 0 additions & 156 deletions app/src/androidTest/java/org/dhis2/usescases/form/FormRobot.kt

This file was deleted.

Loading
Loading