also looking at this
test(ios): verify app termination before local notification delivery
#308
5 files
+96
-21
| @@ -59,6 +59,11 @@ export type DriverEvent = PlanEvent | CaseEvent | DoneEvent | FatalEvent | Obser | ||
| 59 | 59 | |
| 60 | 60 | export type MobilePlatform = 'ios' | 'android' |
| 61 | 61 | |
| 62 | // The local notification must survive UI discovery and synchronous app | |
| 63 | // termination before it fires. CI has spent 32 seconds in terminate() alone. | |
| 64 | export const LOCAL_NOTIFICATION_DELAY_MS = 120_000 | |
| 65 | export const NOTIFICATION_TEST_TIMEOUT_MS = 300_000 + LOCAL_NOTIFICATION_DELAY_MS | |
| 66 | ||
| 62 | 67 | /** |
| 63 | 68 | * The cases each platform must run, named here and nowhere else. |
| 64 | 69 | * |
formatting only · 4 hidden lines
| @@ -867,4 +872,3 @@ export function androidDeclines(text: string): string[] { formatting only | ||
| 867 | 872 | const pattern = new RegExp(`craft: (\\w+) (${phrases}) \\(([^)]*)\\)`, 'g') |
| 868 | 873 | return [...plain.matchAll(pattern)].map(match => `${match[1]}: ${match[2]} (${match[3]})`) |
| 869 | 874 | } |
| 870 | ||