Commit 9bfa19f
committed
test: fix and enhance
- Add `AndroidManifest.xml` files for `androidTest` and `debug` build types to include `INTERNET`, `ACCESS_NETWORK_STATE`, and `ACCESS_LOCAL_NETWORK` permissions.
- Re-enable `RotationTest` by removing the `@Ignore` annotation and implementing a runtime permission grant for `ACCESS_LOCAL_NETWORK` on supported Android versions.
- Refactor `RotationTest` to use `onNodeWithTag` with `CREATE_NOTE_FAB_TAG` instead of string-based `onNodeWithContentDescription`.
- Update test logic to use `runTest` and `awaitIdle()` for better synchronization during orientation changes.
- Adjust `RuleChain` order in `RotationTest` to ensure `composeTestRule` is initialized correctly relative to the `ScreenOrientationRule`.RotationTest with network permissions1 parent 487c448 commit 9bfa19f
3 files changed
Lines changed: 45 additions & 15 deletions
File tree
- app/android/src
- androidTest
- java/com/softartdev/notedelight/ui
- debug
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
Lines changed: 29 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | | - | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| 13 | + | |
| 14 | + | |
12 | 15 | | |
13 | | - | |
| 16 | + | |
| 17 | + | |
14 | 18 | | |
15 | 19 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
28 | | - | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
33 | | - | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
38 | 53 | | |
39 | | - | |
40 | | - | |
| 54 | + | |
| 55 | + | |
41 | 56 | | |
42 | 57 | | |
43 | | - | |
| 58 | + | |
44 | 59 | | |
45 | 60 | | |
46 | 61 | | |
| 62 | + | |
47 | 63 | | |
48 | 64 | | |
49 | | - | |
| 65 | + | |
50 | 66 | | |
51 | | - | |
52 | | - | |
53 | 67 | | |
54 | 68 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
0 commit comments