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

Merge main to develop #3412

Closed
wants to merge 57 commits into from
Closed
Show file tree
Hide file tree
Changes from 55 commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
26c58d9
build(deps): bump urllib3 from 1.25.10 to 1.26.17 in /scripts (#3311)
dependabot[bot] Oct 10, 2023
e5f65e8
build(deps): bump urllib3 from 1.26.17 to 1.26.18 in /scripts (#3335)
dependabot[bot] Oct 18, 2023
18d5b8b
[RELEASE/2.9] Starting Release
ferdyrod Oct 26, 2023
091aff6
fix: [ANDROAPP-5646] handle online TEIs mapping (#3353)
mmmateos Oct 30, 2023
9068392
fix: [ANDROAPP-5550] long text bottom line (#3358)
mmmateos Oct 31, 2023
42ac729
add empty onImageClick implementation (#3367)
xavimolloy Oct 31, 2023
13755b3
fix: [ANDROAPP-5654] foregroundService on API 34 (#3356)
mmmateos Nov 2, 2023
6b676fc
update period date (#3368)
andresmr Nov 2, 2023
307ef55
feat: [ANDROAPP-5626] implement gs1 component (#3363)
xavimolloy Nov 2, 2023
cc0ea82
fix(translations): sync translations from transifex (develop) (#3357)
dhis2-bot Nov 3, 2023
f269faa
[ANDROAPP-5652] EventInitial new inputs (#3350)
andresmr Nov 3, 2023
e237aed
[ANDROAPP-5625] Don't save values for autocomplete if value is empty …
xavimolloy Nov 3, 2023
83faa8c
Added start parameter to save value coroutine (#3364)
ferdyrod Nov 3, 2023
f5ff82a
[ANDROAPP-5603] Input coordinates location updates (#3361)
andresmr Nov 6, 2023
d512cc6
fix: [ANDROAPP-5587] Implement Input Image (2) (#3362)
xavimolloy Nov 6, 2023
cd57ac4
[ANDROAPP-5582] Input date save empty values (#3370)
andresmr Nov 6, 2023
d612616
[ANDROAPP-5563] manage selected state by option code check too (#3369)
xavimolloy Nov 6, 2023
d6bb8e0
feat: [ANDROAPP-5670] not supported field (#3365)
mmmateos Nov 6, 2023
6c539e3
fix: [ANDROAPP-5596] sections review (#3371)
mmmateos Nov 8, 2023
f1a7e5b
fix: [ANDROAPP-4019] Tei Dashboard detail card (#3355)
ferdyrod Nov 9, 2023
e93d670
[ANDROAPP-5652] Update event details (#3376)
andresmr Nov 10, 2023
ab0a09e
Improve performance in program bottom menu evaluation (#3372)
vgarciabnz Nov 10, 2023
54b36de
fix: [ANDROAPP-5689] form focus (#3380)
mmmateos Nov 10, 2023
1efbc9b
fix: [ANDROAPP-5659] Null pointer exception trying to view image from…
xavimolloy Nov 10, 2023
e2e208e
fix: [ANDROAPP-5584] Input file resource corrections (#3374)
xavimolloy Nov 10, 2023
1968f25
fix name overload (#3383)
xavimolloy Nov 10, 2023
f1f5dcc
Update SDK to snapshot 1.9.0-66 (#3382)
vgarciabnz Nov 13, 2023
0329e95
[ANDROAPP-5582] Input Date allow future dates (#3378)
andresmr Nov 13, 2023
de26f77
feat: [ANDROAPP-5709] Implement new Components in ScheduledEventActiv…
xavimolloy Nov 13, 2023
aa08283
[ANDROAPP-5627] manage double navigation into view with single progra…
xavimolloy Nov 14, 2023
669a7f7
fix: [ANDROAPP-5727] Defer matomo event tracking to IO thread (#3381)
vgarciabnz Nov 14, 2023
ad6a113
fix: [ANDROAPP-5596] form padding (#3384)
mmmateos Nov 14, 2023
41b2288
fix: [ANDROAPP-5729] move to next section from last field focus (#3388)
mmmateos Nov 14, 2023
f7382fd
ANDROAPP-5708-Error-message-for-Yes-No-field-is-incorrect (#3387)
DavidAparicioAlbaAsenjo Nov 15, 2023
e6e0f40
fix: [ANDROAPP-5723] hide program stages with HideProgramStage rule (…
mmmateos Nov 15, 2023
f54e618
Filter images trackedEntityAttribute from title (#3390)
ferdyrod Nov 16, 2023
c6dd397
[ANDROAPP-5734] Add remote configuration (#3391)
andresmr Nov 16, 2023
5a0f5d2
fix: [ANDROAPP-5689] next section scroll (#3394)
mmmateos Nov 16, 2023
86f1815
update design library (#3396)
andresmr Nov 16, 2023
68ba7e8
fix: [ANDROAPP-5713] Workinglist chip persist selection (#3389)
ferdyrod Nov 16, 2023
4f5ddc7
[ANDROAPP-5744] Update numeric fields (#3395)
andresmr Nov 16, 2023
0563a91
[ANDROAPP-5685] Add View only to non editable datasets (#3386)
andresmr Nov 16, 2023
5218649
[ANDROAPP-5627] Manage double navigation correctly (#3397)
xavimolloy Nov 17, 2023
db42401
[ANDROAPP-5627] show next button correctly in old forms (#3399)
xavimolloy Nov 17, 2023
984b273
fixes enrollment's program list on tei card list and tei dashboard de…
ferdyrod Nov 17, 2023
ceaa247
fix: [ANDROAPP-5750] remove filters on dashboard event loading (#3398)
mmmateos Nov 17, 2023
98ced97
[ANDROAPP-5652] EventDetails mandatory fields (#3393)
andresmr Nov 17, 2023
6f5efd9
fix search and bottom dialog crash (#3401)
ferdyrod Nov 20, 2023
ac5468e
fix: [ANDROAPP-5627] open single program once (#3402)
mmmateos Nov 21, 2023
0d30af5
fix: [ANDROAPP-5719] empty table crash (#3403)
mmmateos Nov 21, 2023
ee3a5e5
build: 2.9 release (#3404)
ferdyrod Nov 22, 2023
c150d30
Update release (#3407)
mmmateos Nov 22, 2023
7642b33
Revert "build(deps): bump urllib3 from 1.26.17 to 1.26.18 in /scripts…
ferdyrod Nov 22, 2023
7811306
Revert "build(deps): bump urllib3 from 1.25.10 to 1.26.17 in /scripts…
ferdyrod Nov 22, 2023
5be5475
Merge pull request #3406 from dhis2/release/2.9
ferdyrod Nov 22, 2023
e4d8bbb
added colorUtils Import to dhisPlayServices Flavor
ferdyrod Nov 22, 2023
21c189f
fixed binding import
ferdyrod Nov 22, 2023
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
1 change: 1 addition & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ pipeline {
options {
buildDiscarder(logRotator(daysToKeepStr: '5'))
timeout(time: 50)
disableConcurrentBuilds(abortPrevious: true)
}

stages {
Expand Down
72 changes: 30 additions & 42 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,56 +1,44 @@
Android Capture App for DHIS 2 (v2.8.2) - Patch version
# DHIS2 Android App version 2.9 Release Notes
<table>
<tr>
<td>
<img src="https://s3-eu-west-1.amazonaws.com/content.dhis2.org/dhis2-android/android-chrome-384x384.png" width="800">
</td>
<td>
This is a patch version of the <strong>DHIS2 Android App</strong> It builds upon the last version including bug fixes that couldn't wait to the next version.
It includes no functional improvements neither changes in the User Interface. It means that yours users can update without experiencing any change in the UI.
The new <strong>DHIS2 Android App</strong> allows offline data capture across all DHIS2 data models. Data and metadata are automatically synchronized whenever there is internet access, always keeping the most relevant data for the logged user in the device.
The app is compatible and we support <strong>2.38</strong>, <strong>2.39</strong>, <strong>40</strong>. And has no breaking changes with <strong>2.37</strong>, <strong>2.36</strong>, <strong>2.35</strong> and <strong>2.34</strong>.
</td>
</tr>
<tr>
<td colspan="2" bgcolor="white">
## USER EXPERIENCE

## Bugs fixed
* [ANDROAPP-5463](https://dhis2.atlassian.net/browse/ANDROAPP-5463) Wrong password in already authenticated account throws invalid url
* [ANDROAPP-5452](https://dhis2.atlassian.net/browse/ANDROAPP-5452) Notifications not displaying on devices with android 13
* [ANDROAPP-5426](https://dhis2.atlassian.net/browse/ANDROAPP-5426) DataSet tables not saving text values
* [ANDROAPP-5425](https://dhis2.atlassian.net/browse/ANDROAPP-5425) App crashing when opening orgUnit field in event creation on android 5 and 6 devices
* [ANDROAPP-5424](https://dhis2.atlassian.net/browse/ANDROAPP-5424) App not functional in Android 5.0 and 6.0 devices due to expression-parser library
* [ANDROAPP-5403](https://dhis2.atlassian.net/browse/ANDROAPP-5403) The app displays the keyboard over the selecting menu when the user has multiple apps to use the email or phone number
* [ANDROAPP-5401](https://dhis2.atlassian.net/browse/ANDROAPP-5401) Infinite loading when applying date filters in tracker program
* [ANDROAPP-5399](https://dhis2.atlassian.net/browse/ANDROAPP-5399) Improve recomposition on input field in tables
* [ANDROAPP-5396](https://dhis2.atlassian.net/browse/ANDROAPP-5396) SDK BC: handle d2ErrorCode SERVER_CONNECTION_ERROR
* [ANDROAPP-5389](https://dhis2.atlassian.net/browse/ANDROAPP-5389) Validation Strategy - Errors
* [ANDROAPP-5385](https://dhis2.atlassian.net/browse/ANDROAPP-5385) Program dashboard: filter by EventDate includes all EventStatus as side effect
* [ANDROAPP-5384](https://dhis2.atlassian.net/browse/ANDROAPP-5384) Persist dataset column size when adjusted by the user and revert to default
* [ANDROAPP-5380](https://dhis2.atlassian.net/browse/ANDROAPP-5380) Sync button crashes app after rotating device in search screen
* [ANDROAPP-5377](https://dhis2.atlassian.net/browse/ANDROAPP-5377) A TEI enrolled in many programs display to many icons blocking the TEI info card
* [ANDROAPP-5376](https://dhis2.atlassian.net/browse/ANDROAPP-5376) Login button doesn't work and doesn't present any error
* [ANDROAPP-5375](https://dhis2.atlassian.net/browse/ANDROAPP-5375) App crashes with some icons
* [ANDROAPP-5370](https://dhis2.atlassian.net/browse/ANDROAPP-5370) Navigation button does not open in some programs.
* [ANDROAPP-5369](https://dhis2.atlassian.net/browse/ANDROAPP-5369) NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.String.replaceAll(java.lang.String, ...
* [ANDROAPP-5368](https://dhis2.atlassian.net/browse/ANDROAPP-5368) Org Unit value type opens the hierarchy incorrectly
* [ANDROAPP-5363](https://dhis2.atlassian.net/browse/ANDROAPP-5363) Wrong label displayed while navigating an error or warning
* [ANDROAPP-5348](https://dhis2.atlassian.net/browse/ANDROAPP-5348) Errors in program rules are not shown after they have been displayed once despite the program rule being reexecuted
* [ANDROAPP-5343](https://dhis2.atlassian.net/browse/ANDROAPP-5343) Sync flow backwards
* [ANDROAPP-5342](https://dhis2.atlassian.net/browse/ANDROAPP-5342) Form actionable icons launch action from stored value
* [ANDROAPP-5340](https://dhis2.atlassian.net/browse/ANDROAPP-5340) Store image and files before value type validation
* [ANDROAPP-5335](https://dhis2.atlassian.net/browse/ANDROAPP-5335) In TEI dashboard filters appears items related to TEI
* [ANDROAPP-5334](https://dhis2.atlassian.net/browse/ANDROAPP-5334) "All enrollments" cards show incident date even when not configured
* [ANDROAPP-5330](https://dhis2.atlassian.net/browse/ANDROAPP-5330) App crash when deleting quantities in "Review" stage
* [ANDROAPP-5329](https://dhis2.atlassian.net/browse/ANDROAPP-5329) The selected cell is hidden in RTStock program (and datasets) table if the first cell is selected after scroll
* [ANDROAPP-5328](https://dhis2.atlassian.net/browse/ANDROAPP-5328) Default language not respected (or inconsistent) when changing between servers.
* [ANDROAPP-5323](https://dhis2.atlassian.net/browse/ANDROAPP-5323) IllegalStateException: Attempting to launch an unregistered ActivityResultLauncher with contract androidx.activity.resul...
* [ANDROAPP-5255](https://dhis2.atlassian.net/browse/ANDROAPP-5255) [LANDSCAPE] Loading bar never hides in overview screen
* [ANDROAPP-5253](https://dhis2.atlassian.net/browse/ANDROAPP-5253) Event status filter doesn't remove checkmarks after the reset
* [ANDROAPP-4710](https://dhis2.atlassian.net/browse/ANDROAPP-4710) Validation Strategy - Mandatory Fields
* [ANDROAPP-4322](https://dhis2.atlassian.net/browse/ANDROAPP-4322) Analytics legends don't show event's exact date
* [ANDROAPP-3106](https://dhis2.atlassian.net/browse/ANDROAPP-3106) [Bug]Error when searching with comma char in the values
* This patch release updates the [Android SDK](https://github.com/dhis2/dhis2-android-sdk) to version 1.8.2.

You can find in Jira details on the [bugs fixed](https://dhis2.atlassian.net/issues/?filter=10461) in this version.
**Disable referral in tracker programs:** When users add events in a tracker program, the DHIS2 Android Capture app offers three options: Add (for new events), Schedule (for planning future evetns) and Refer (for referrals or transfers). As this third option is not used in many implementations, this new feature enables the admin user to remove that option from the menu to simplify the user experience. The referral option can be hidden using the Android Settings Web App for all programs or for each specific program. [Jira](https://dhis2.atlassian.net/browse/ANDROAPP-4445) | [Documentation App](https://docs.dhis2.org/en/use/android-app/program-features.html#capture_app_programs_referrals) | [Documentation Webapp](https://docs.dhis2.org/en/use/android-app/settings-configuration.html#capture_app_android_settings_webapp_appearance_program) | [Screenshot](https://s3.eu-west-1.amazonaws.com/content.dhis2.org/dhis2-android/release+notes+2.9/release+feature+cards/Android-2-9-Disable-referrals.png)

**Skip home screen if users only have access to one program:** The home screen of the DHIS2 Android App shows the list of programs and datasets available for the user. The first thing a user must do when using the app is to select the program or dataset to work with. In some implementations, users have access to only one program or dataset. To reduce the number of clicks and streamline the process of data entry, the App will now skip the home screen in the cases where the user has access to only one program or dataset, and will instead open directly to the program or dataset screen with the event, TEI or dataset list. [Jira](https://dhis2.atlassian.net/browse/ANDROAPP-5148) | [Documentation](https://docs.dhis2.org/en/use/android-app/android-specific-features.html#capture_app_home) | [Screenshot](https://s3.eu-west-1.amazonaws.com/content.dhis2.org/dhis2-android/release+notes+2.9/release+feature+cards/Android-2-9-Skip-home-screen.png)

**Display program stage description:** The description for program stage sections was not available to the end user in previous versions of the App. To provide more context and information at the moment of data collection, the description has now been brought to the user interface and will be displayed below the section name. [Jira](https://dhis2.atlassian.net/browse/ANDROAPP-5151) | [Documentation](https://docs.dhis2.org/en/use/android-app/program-features.html#capture_app_programs_common_features_data_entry_form_program_stage_description) | [Screenshot](https://s3.eu-west-1.amazonaws.com/content.dhis2.org/dhis2-android/release+notes+2.9/release+feature+cards/Android-2-9-Program-stage-description.png)

**Disable collapsible sections in forms:** Stage sections in the Android App are displayed with collapsible menus that enable the user to open one section at a time. The purpose of this accordion-like implementation is to help the user navigate very long forms. However, some implementations would prefer to list the sections one after the other. This new version of the application enables the admin user to decide if the sections should appear in extended mode. This configuration is made through the Android Settings Web App and will display the sections one after the other with the section name acting as a separator. [Jira](https://dhis2.atlassian.net/browse/ANDROAPP-5393) | [Documentation App](https://docs.dhis2.org/en/use/android-app/program-features.html#capture_app_programs_common_features_data_entry_form_collapsible_sections) | [Documentation Webapp](https://docs.dhis2.org/en/use/android-app/settings-configuration.html#capture_app_android_settings_webapp_appearance_program) | [Screenshot](https://s3.eu-west-1.amazonaws.com/content.dhis2.org/dhis2-android/release+notes+2.9/release+feature+cards/Android-2-9-Not-collapse-sections.png)

**Move working lists under the search bar:** The working lists have been moved from the filters section to the main program screen. In earlier versions, the user had to open the filters to be able to see and select a working list. From this version, the working lists are always visible under the search bar, facilitating their use for filtering out Tracked Entity Instances. [Jira](https://dhis2.atlassian.net/browse/ANDROAPP-5453) | [Documentation](https://docs.dhis2.org/en/use/android-app/program-features.html#capture_app_programs_common_features_working_lists) | [Screenshot](https://s3.eu-west-1.amazonaws.com/content.dhis2.org/dhis2-android/release+notes+2.9/release+feature+cards/Android-2-9-Working-list-under-search-bar.png)

**New design for Dataset, Event and TEI cards:** Cards are used for listing datasets, events and TEIs. The new design offers a cleaner and more intuitive layout, replacing the use of colored icons by descriptive text when relevant. [Jira](https://dhis2.atlassian.net/browse/ANDROAPP-5485) | [Documentation datasets](https://docs.dhis2.org/en/use/android-app/datasets-features.html#capture_app_datsets_cards_design) | [Documentation events](https://docs.dhis2.org/en/use/android-app/program-features.html#capture_app_programs_common_features_cards_design) | [Documentation TEI](https://docs.dhis2.org/en/use/android-app/program-features.html#capture_app_programs_tei_design) | [Screenshot](https://s3.eu-west-1.amazonaws.com/content.dhis2.org/dhis2-android/release+notes+2.9/release+feature+cards/Android-2-9-New-cards-design.png)

**Implement changes in TEI Dashboard details:** The TEI Dashboard has been redesigned for both portrait and landscape view. The new design offers a cleaner and more intuitive layout, replacing the use of colored icons by text when relevant and moving some secondary actions to the hidden menus. [Jira](https://dhis2.atlassian.net/browse/ANDROAPP-4019) | [Screenshot](https://s3.eu-west-1.amazonaws.com/content.dhis2.org/dhis2-android/release+notes+2.9/release+feature+cards/Android-2-9-TEI-dashboard.png) | [Documentation](https://docs.dhis2.org/en/use/android-app/program-features.html#capture_app_programs_tei_design)

**Data entry forms - New inputs per value type:** The inputs for all value types have been redesigned. Tappable areas and texts have been increased and selection modes are improved to offer a cleaner and more intuitive user experience. By default, the Android App will display the previous forms. Admin users are able to opt-in to use the new forms through the Android Settings Web App. [Jira](https://dhis2.atlassian.net/browse/ANDROAPP-5408) | [Documentation App](https://docs.dhis2.org/en/use/android-app/program-features.html#capture_app_programs_common_features_data_entry_form_new_inputs) | [Documentation Webapp](https://docs.dhis2.org/en/use/android-app/settings-configuration.html#capture_app_android_settings_webapp_appearance_program) | [Screenshot](https://s3.eu-west-1.amazonaws.com/content.dhis2.org/dhis2-android/release+notes+2.9/release+feature+cards/Android-2-9-New-inputs.png)

**[EXPERIMENTAL] TEI Header:** The TEI Header is a title that can be added to the TEI cards and dashboards in the app. The title helps identify a TEI by displaying a summary of key information. It is formed by a concatenation of Tracked Entity Attributes and fixed text. The title is configured through a Program Indicator in the Maintenance app and is assigned to the tracker program in the Android Settings web app. This feature is experimental, and depending on feedback and adoption it will be refined and incorporated in the web Capture app. [Jira](https://dhis2.atlassian.net/browse/ANDROAPP-5402) | [Documentation App](https://docs.dhis2.org/en/use/android-app/program-features.html#capture_app_programs_tei_header) | [Documentation Webapp](https://docs.dhis2.org/en/use/android-app/settings-configuration.html#capture_app_android_settings_webapp_appearance_program_specific) | [Screenshot](https://s3.eu-west-1.amazonaws.com/content.dhis2.org/dhis2-android/release+notes+2.9/release+feature+cards/Android-2-9-TEI-Header.png)

**Other improvements for User Experience**
- Smaller improvements focussing on user experience like a new org unit selector [Jira](https://dhis2.atlassian.net/browse/ANDROAPP-4566) | | [Screenshot](https://s3.eu-west-1.amazonaws.com/content.dhis2.org/dhis2-android/release+notes+2.9/release+feature+cards/Android-2-9-Org-unit-selector.png), or adding a loading spinner during the deletion of big databases. [Jira](https://dhis2.atlassian.net/browse/ANDROAPP-4768) | [Screenshot](https://s3.eu-west-1.amazonaws.com/content.dhis2.org/dhis2-android/release+notes+2.9/release+feature+cards/Android-2-9-loading-when-deleting-data.png)

## MAINTENANCE

**Bug fixing:** You can find the list of bugs fixed [here](https://dhis2.atlassian.net/issues/?filter=10510).

You can find in Jira details on the [new features](https://dhis2.atlassian.net/issues/?filter=10513) in this version.

Remember to check the [documentation](https://www.dhis2.org/android-documentation) for detailed
information of the features included in the App and how to configure DHIS2 to use it.
Expand Down
9 changes: 6 additions & 3 deletions app/src/androidTest/java/org/dhis2/usescases/BaseTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@ package org.dhis2.usescases

import android.content.Context
import android.os.Build
import androidx.test.espresso.Espresso
import androidx.test.espresso.IdlingRegistry
import androidx.test.espresso.action.ViewActions
import androidx.test.espresso.intent.Intents
import androidx.test.espresso.matcher.ViewMatchers
import androidx.test.platform.app.InstrumentationRegistry
import androidx.test.rule.GrantPermissionRule
import org.dhis2.AppTest
Expand All @@ -21,6 +18,7 @@ import org.dhis2.common.keystore.KeyStoreRobot.Companion.USERNAME
import org.dhis2.common.mockwebserver.MockWebServerRobot
import org.dhis2.common.preferences.PreferencesRobot
import org.dhis2.common.rules.DisableAnimations
import org.dhis2.commons.featureconfig.model.Feature
import org.dhis2.commons.idlingresource.CountingIdlingResourceSingleton
import org.dhis2.commons.idlingresource.SearchIdlingResourceSingleton
import org.dhis2.commons.prefs.Preference
Expand Down Expand Up @@ -74,6 +72,7 @@ open class BaseTest {
keyStoreRobot = providesKeyStoreRobot(context)
preferencesRobot = providesPreferencesRobot(context)
mockWebServerRobot = providesMockWebserverRobot(context)
disableComposeForms()
}
}

Expand Down Expand Up @@ -160,6 +159,10 @@ open class BaseTest {
(context.applicationContext as AppTest).deleteDatabase(DB_TO_IMPORT)
}

private fun disableComposeForms() {
preferencesRobot.saveValue(Feature.COMPOSE_FORMS.name, false)
}

companion object {
@ClassRule
@JvmField
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
package org.dhis2.usescases.datasets

import androidx.compose.ui.test.junit4.ComposeTestRule
import androidx.compose.ui.test.onNodeWithTag
import androidx.test.espresso.Espresso.onView
import androidx.test.espresso.action.ViewActions.click
import androidx.test.espresso.contrib.RecyclerViewActions
import androidx.test.espresso.matcher.ViewMatchers.hasDescendant
import androidx.test.espresso.matcher.ViewMatchers.hasSibling
import androidx.test.espresso.matcher.ViewMatchers.withId
import androidx.test.espresso.matcher.ViewMatchers.withText
import org.dhis2.R
import org.dhis2.common.BaseRobot
import org.dhis2.utils.customviews.DateViewHolder
import org.hamcrest.CoreMatchers.allOf


fun dataSetInitialRobot(dataSetInitialRobot: DataSetInitialRobot.() -> Unit) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class DataSetTest : BaseTest() {

@Test
fun shouldCreateNewDataSet() {
val period = "Dec 2022"
val period = "Oct 2023"
val orgUnit = "Ngelehun CHC"
startDataSetDetailActivity("ZOV1a5R4gqH", "DS EXTRA TEST", ruleDataSetDetail)

Expand All @@ -57,7 +57,7 @@ class DataSetTest : BaseTest() {
}
dataSetInitialRobot {
clickOnInputOrgUnit()
orgUnitSelectorRobot(composeTestRule){
orgUnitSelectorRobot(composeTestRule) {
selectTreeOrgUnit(orgUnit)
}
clickOnInputPeriod()
Expand Down
Loading