services icon indicating copy to clipboard operation
services copied to clipboard

Fix Broken GeneralAppPropertiesActivity UI test

Open Stryker101 opened this issue 11 months ago • 4 comments

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. Screenshot 2024-03-23 121305 Screenshot 2024-03-23 121412 Screenshot 2024-03-23 121444

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()

Screenshot 2024-03-29 210905

Stryker101 avatar Mar 23 '24 11:03 Stryker101