summaryrefslogtreecommitdiffhomepage
path: root/android/test/mockapi
AgeCommit message (Collapse)AuthorFilesLines
2026-02-27Update to build app with Java 21Kalle Lindström1-12/+1
2026-02-26Fix account history testDavid Göransson1-0/+1
2026-02-09Introduce DAITA feature moduleDavid Göransson1-1/+1
Add new DAITA feature module along with convention plugins for: - New features - Unit tests - Instrumented tests These makes it easier to get make a new feature module along with simplifying the use of tests in submodules.
2026-01-19Fix screen rotation mock api testJonatan Rhodin1-1/+1
2026-01-16Add device rotation testKalle Lindström1-0/+43
This makes sure that the app doesn't crash after having logged in and the user rotates the device.
2026-01-16Replace mock webserver with ktorJonatan Rhodin18-248/+279
2025-12-22Increase timeout for server ip override testDavid Göransson2-19/+29
2025-12-22Attempt to make server ip overrides test less flakyJonatan Rhodin1-1/+4
2025-12-16Add device ipv6 testJonatan Rhodin1-1/+1
2025-12-10Use grpc to set settingsDavid Göransson1-7/+5
2025-12-10Add test to check that automatic uses all obfuscationsJonatan Rhodin1-0/+55
2025-12-05Fix stale object exception for server override testJonatan Rhodin1-5/+1
2025-12-03Add server ip overrides mock api testJonatan Rhodin2-1/+76
2025-12-01Add mock api tests for recentsKalle Lindström5-2/+11652
2025-11-07Move buildSrc utilities to build-logic pluginAlbin1-0/+3
2025-10-23Fix failing test due to time zone changeKalle Lindström3-4/+4
2025-07-03Fix gradle kotlinOptions warningsDavid Göransson1-3/+7
2025-06-19Use AlarmManager for notificationsKalle Lindström1-16/+45
Instead of scheduling system notifications from a flow we now schedule them independently from the app lifecycle via AlarmManager. This is done so that for example an expiry notification that the user dismissed won't get redisplayed if the app process gets killed and then restarted. When the account exiry time is fetched we schedule an alarm that will show a notification 3 days before the account time expires. This alarm then also schedules a new alarm to show the following notification and so on. To make this work this PR also introduces two new broadcast receivers; one on boot received listener and one on time time/timezone changed listener. Beause Android clears alarms when the devices is rebooted/the time is changed we need these listeners to re-trigger the alarm. To enable the broadcast receivers to re-trigger the alarm we also have to persist the expiry time in the DataStore preferences.
2025-05-26Migrate remaining deps and versions to version catalogsDavid Göransson1-10/+9
2025-05-21Supply IP address when using API overrideDavid Göransson1-1/+6
Previously we did a DNS lookup for Stagemole and Devmole however, this causes problem when starting the app with no internet and is different from how the app performs in production mode. This commit removes that logic in order to align closer to what we expect in prod.
2025-05-12Convert all test to use Page patternDavid Göransson9-164/+91
Converts all our last test to use the Page object pattern and clean up a bunch of old MockApi and E2E test logic.
2025-05-09Fix flaky device management testDavid Göransson1-14/+17
The device mangement test would fail because it expect the device to be removed however it was in a loading state while API request was being made. This commit allows it to be visible intiailly (loading) and then expects it to be removed.
2025-05-07Attempt to fix flakinessDavid Göransson1-0/+2
2025-04-30Move all test tags to new lib.ui.tag moduleKalle Lindström4-3/+5
2025-04-28Add mock api test for manage devices screenKalle Lindström2-0/+58
2025-04-16Replace Volley with ktorDavid Göransson1-18/+2
2025-03-07Offer to store accout number in password managerDavid Göransson1-0/+2
2025-03-03Add waitForIdle to device list testAlbin1-0/+3
Wait until the application is idle to avoid skipping input events that are filtered out depending on lifecycle state (dropUnlessResumed).
2025-02-26Remove Joda Time and use java.time package insteadKalle Lindström9-35/+34
Joda Time has been superseded by the Java 8 java.time package which has more or less the same API. This commit removes all usage of Joda Time and replaces it with the java.time classes. This is done so that we can remove the dependency on Joda Time.
2025-02-18Fix mockapi device list test wait conditionAlbin1-1/+1
2025-02-04Remove OWASP dependency check pluginAlbin1-9/+0
The OWASP DependencyCheck plugin has been replaced with `osv-scanner` which covers our use-case.
2025-01-02Remove global API endpointEmīls1-6/+1
2024-10-08Suppress complex dispatch methodDavid Göransson1-0/+1
2024-10-08Fix print stacktrace warningDavid Göransson1-2/+1
2024-10-03Make all compiler warnings errorsDavid Göransson1-1/+4
2024-09-24Set build tools version to 35.0.0David Göransson1-0/+1
2024-09-20Call dismissChangelogIfShown at the correct timeJonatan Rhodin6-9/+8
2024-09-17Format build filesDavid Göransson1-10/+7
2024-09-16Rename test timeout constantsNiklas Berglund1-2/+2
2024-08-30Initialize mullvad daemon directly in vpn service on createJonatan Rhodin1-4/+4
As a consequence move the address resolve to the daemon
2024-08-28Reformat kotlin code using updated ktfmt pluginAlbin4-8/+8
This commit mostly adds trailing commas throughout the project, but also includes a few other formatting changes.
2024-08-19Fix for failing mockapi and e2e testsNiklas Berglund1-0/+8
2024-08-13Migrate to version catalogsAlbin1-21/+21
2024-06-26Migrate log calls to kermitAlbin3-11/+10
2024-06-26Add kermit dependencyAlbin1-0/+1
2024-06-12Format xml filesAlbin1-4/+2
2024-06-10Unify account number namingAlbin9-35/+35
Use variations of "account number" rather than "account token" throughout the kotlin code base.
2024-03-11Re-enable expiry textDavid Göransson1-5/+0
2024-02-07Fix flaky account history mockapi testJonatan Rhodin1-0/+1
Add some extra time to for the login page to show to improve stability of the test.
2024-02-06Remove common lib dependency from test mockapiJonatan Rhodin3-6/+5