Commit d46c02a
committed
refactor(test): Replace retry helpers with
- Remove the custom `retryUntil` and `retryUntilNotDisplayed` helper functions from `ext.kt`.
- Introduce a new `waitUntilNotExist` extension function for `ComposeUiTest` that uses the standard `waitUntilDoesNotExist` with a timeout.
- Update `SettingPasswordTestCase` to use `waitUntilNotExist` instead of a custom wait assertion (`waitAssert` with `assertIsNotDisplayed`) to check for a dialog's disappearance.waitUntilDoesNotExist
1 parent ac0222c commit d46c02a
File tree
2 files changed
+11
-39
lines changed- ui/test/src/commonMain/kotlin/com/softartdev/notedelight
- ui/cases
2 files changed
+11
-39
lines changedLines changed: 7 additions & 34 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | 9 | | |
11 | 10 | | |
12 | | - | |
| 11 | + | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | 18 | | |
35 | 19 | | |
36 | 20 | | |
| |||
47 | 31 | | |
48 | 32 | | |
49 | 33 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | 34 | | |
67 | 35 | | |
68 | 36 | | |
| |||
76 | 44 | | |
77 | 45 | | |
78 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
79 | 52 | | |
80 | 53 | | |
81 | 54 | | |
| |||
Lines changed: 4 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
| |||
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
132 | 133 | | |
133 | 134 | | |
134 | 135 | | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
| 136 | + | |
| 137 | + | |
139 | 138 | | |
140 | 139 | | |
141 | 140 | | |
| |||
0 commit comments