services icon indicating copy to clipboard operation
services copied to clipboard

Fix Broken UI Test for all Admin Configurable Settings

Open Stryker101 opened this issue 11 months ago • 5 comments

This is a pull request raised for issue https://github.com/odk-x/tool-suite-X/issues/470

Reason for Fix:

There are configurable settings available for a normal user of the app and there are configurable settings available for a user with admin privileges. The UI tests for these settings screen was broken following a rework of the settings screen. This PR was raised to fix the broken UI Test for the configurable settings that are available to a user with ADMIN privileges. These tests includes the following:

-AdminConfigurableServerSettingsFragmentTest.java -AdminConfigurableDeviceSettingsFragmentTest.java -AdminConfigurableTablesSettingsFragmentTest.java

What was changed in these files:

AdminConfigurableServerSettingsFragmentTest.java --Nothing changed. this test was fixed when the enableAdminMode(); function in BaseUItest was fixed

AdminConfigurableDeviceSettingsFragmentTest.java --corrected the reference for the string to be matched.

AdminConfigurableTablesSettingsFragmentTest.java --corrected the reference for the string to be matched.

*Also updated the PR with a fix for VerifyUserPermissionTest.java

What was changed in these files:

VerifyUserPermissionTest.java --corrected the reference for the string to be matched.

*N/B: Please note that following update of this PR with the fix for VerifyUserPermissionTest.java, this concludes the fixing of all the broken UI tests in the Preferences package. except for the QR code scanner test which has no current implementation.

Screenshot 2024-03-29 213306 Screenshot 2024-03-29 213423 Screenshot 2024-03-29 213601 Screenshot 2024-03-29 213713

Stryker101 avatar Mar 24 '24 20:03 Stryker101