25 Commits

Author SHA1 Message Date
MohitMaliFtechiz
993c13f85e Fixed: Test cases were failing on the Android 16 emulator due to the stylus_handwriting_enabled setting being enabled by default, which displays a hint dialog when a text field takes focus. 2025-03-31 12:11:09 +05:30
MohitMaliFtechiz
0278fa8a0c Added test cases to the CI for testing the minified version of the application to prevent this type of error from happening in the future. 2024-09-13 16:59:01 +05:30
MohitMaliFtechiz
ad1cbeb7bc Deleting the test application before running the test cases. 2024-05-03 17:08:23 +05:30
MohitMaliFtechiz
ff9c82ebb8 Fixed: Ci is continuously failing.
* Modified the `instrumentation.sh` script to delete the app if already installed in the device before running the test cases.
2024-05-03 16:50:46 +05:30
MohitMaliFtechiz
dfdbc1be35 Fixed: Sometimes all the test cases crash on first time and some fail due to the navigation drawer being visible on the window. (Android 13).
* We are clearing the data of application on 2nd and 3rd run, and the test cases are running normally so now we are clearing the application data on first run as well.
* Additionally, we've implemented drawer closure in `LanguageFragmentTest`, `LocalFileTransferTest`, and `NoteFragmentTest`. These tests sometimes encountered an open navigation drawer due to test failures or process crashes.
* Enhancements have been made to the `testShowCaseFeatureShowOnce` test case. It's now independent of other test cases, ensuring it remains unaffected in the event of a test process crash or failure.
2024-04-10 18:59:06 +05:30
MohitMaliFtechiz
606bea4405 Improved our instrumentation.sh bash script, if our test fails then after restarting the emulator if our application is installed we clear its cache data so that test cases will perform properly. We have made this change to fix a scenario that comes locally after testing so many times where downloading is stuck due to lag of emulator.
* * Improved the LibkiwixBookmarkTest. In this, before performing the test case we are removing the existing bookmarks if any so that the saved bookmark will not go outside the screen(We faced an occurrence of this type locally).
* Improved the ZIM file path in many scenarios so that the created ZIM file will show in the LocalLibraryScreen and we can delete it so that we can free up the memory.
2024-03-09 19:38:58 +05:30
MohitMaliFtechiz
adeabcf56c Removed the extra logs showing in CI. 2024-01-14 19:08:46 +05:30
MohitMaliFtechiz
87632c5f6a Fixed ZimHostFragment which is failing on API level 33.
* Improved the permission.
* Enabled wifi programmatically in emulator.
* Improved test case for showing "Wifi connection dialog".
2024-01-14 19:08:31 +05:30
MohitMaliFtechiz
bdbfe2f3d1 Fixed: $/${} is unnecessary on arithmetic variables error while incrementing the count of retry variable. Since In Bash arithmetic expansion, the $ is not needed when referencing variables see https://www.shellcheck.net/wiki/SC2004 for more details. 2023-12-18 16:56:53 +05:30
gouri-panda
23a984416f
Fixed #3613 2023-12-17 23:18:33 +05:30
MohitMali
652517b0a2 Added logs to adb after restarting emulator 2023-01-11 15:32:32 +05:30
MohitMali
1105752564 Added retry in bash script 2023-01-11 15:32:01 +05:30
Sean Mac Gillicuddy
693d43f0b8 #2110 Zoom controls disappeared in v3.3.1 - fix instrumentation error code 2020-06-10 14:31:10 +01:00
Sean Mac Gillicuddy
0fbb94272d #2131 PR instrumentation tests can fail silently - bash was returning error even on success 2020-06-09 11:24:41 +01:00
Sean Mac Gillicuddy
db4d53ad3c #2131 PR instrumentation tests can fail silently - return error codes -update nightly to have latest emulator runner and screenshots on failure 2020-06-09 10:34:47 +01:00
Yash Khare
edd4631b75 Screenshot with no writing to SD card 2020-05-01 17:59:32 +05:30
Yash Khare
159a552b50 Fix 2020-05-01 13:46:54 +05:30
Yash Khare
f1e9f9c8c9 Fix for API 21 and 22 2020-05-01 12:30:55 +05:30
Yash Khare
032ddf3d95 Fix for API 21 and 22 2020-05-01 11:21:16 +05:30
Yash Khare
460ea25e71 Fix screenshots for API 21 and 22 2020-04-28 16:06:37 +05:30
Yash Khare
0fd82771cc Fix naming 2020-04-28 15:35:40 +05:30
Yash Khare
0fc0cd1ccf Fix for API 21 and 22 2020-04-26 14:29:16 +05:30
Yash Khare
7eb8e21ff7 test 2020-04-26 13:41:16 +05:30
Yash Khare
24f840c8b5 test 2020-04-26 13:24:02 +05:30
Frans-Lukas
b5a3261674 #1788 moved script files from root to contrib 2020-02-25 21:16:16 +01:00