services
services copied to clipboard
Fix Broken GeneralAppPropertiesActivity UI test
This is a pull request raised for issue https://github.com/odk-x/tool-suite-X/issues/470
Reason for Fix:
The UI test for the settings screen was broken following a rework of the settings screen. As a result, the strings to be matched weren't referenced correctly and the position of the item to be clicked were out of order. this raised the need for some refactoring to fix the broken UI test.
Changes made to the GeneralAppPropertiesActivityTest class
1 Corrected the referenced to the matched strings in the following tests:
-whenOpenDocumentationScreenIsClicked_launchUrl()
-checkIfDeviceSettingScreen_isVisible()
-checkIfTableSpecificSettingScreen_isVisible()
-checkIfEnableUserRestrictionScreen_isVisible()
-whenResetConfigurationScreenIsClicked_launchResetConfigurationDialog()
-checkIfVerifyUserPermissionScreen_isVisible()
2 corrected the position of item on the list for
-whenOpenDocumentationScreenIsClicked_launchUrl()
-checkIfDeviceSettingScreen_isVisible()
-checkIfTableSpecificSettingScreen_isVisible()
-checkIfEnableUserRestrictionScreen_isVisible()
-whenResetConfigurationScreenIsClicked_launchResetConfigurationDialog()
-checkIfVerifyUserPermissionScreen_isVisible()