Unit test FirstLaunchActivityTest.kt fails on testcase whenFormDoesNotExist_showsFatalError because the assert is still checking for original "...please email support@getodk.org...", instead of the new "support@kobotoolbox.org".
Need to add this testcase file - or preferably all unit tests - to kobo-string-replace.js so that the test assert matches the corresponding changes applied to the source code; specifically, change:
replace({
regex: 'support@getodk.org',
replacement: "support@kobotoolbox.org",
paths: ['collect_app/src/main/java/org/odk/collect/android/tasks'],
recursive: true,
silent: true
});
to
replace({
regex: 'support@getodk.org',
replacement: "support@kobotoolbox.org",
paths: ['collect_app/src/main/java/org/odk/collect/android/tasks', 'collect_app/src/test/java/org/odk/collect/android/activities'],
recursive: true,
silent: true
});
This should pickup the associated testcase file java/org/odk/collect/android/activities/FormFillingActivityTest.kt and make the relevant substitution, as well as any future testcases that GetODK might add that have the same GetODK email address.
Unit test FirstLaunchActivityTest.kt fails on testcase whenFormDoesNotExist_showsFatalError because the assert is still checking for original "...please email support@getodk.org...", instead of the new "support@kobotoolbox.org".
Need to add this testcase file - or preferably all unit tests - to kobo-string-replace.js so that the test assert matches the corresponding changes applied to the source code; specifically, change:
to
This should pickup the associated testcase file java/org/odk/collect/android/activities/FormFillingActivityTest.kt and make the relevant substitution, as well as any future testcases that GetODK might add that have the same GetODK email address.