Commit 60cd61f
committed
test(expo): verify theme delivery in a unit test; drop fragile pixel-check
The Maestro screenshot pixel-check for theming was unreliable: it asserted a
hardcoded color against a screenshot whose primary-colored button is disabled
(empty email field on a clean launch) and rendered at a degraded 320x640 CI
emulator resolution — so it consistently 'failed' even though the theme applied.
Per the layer split, @clerk/expo owns theme DELIVERY (the config plugin embeds
the theme into iOS Info.plist + Android assets); the color RENDER is the native
SDKs' responsibility. So:
- Add a deterministic config-plugin unit test (appPlugin.theme.test.js) that
runs withClerkTheme and asserts it embeds the parsed theme into the Info.plist
mod and queues the Android assets mod — and is a no-op without a theme prop
(the original 'bare @clerk/expo plugin string' regression). Runs in turbo
test on every PR; no emulator, no screenshot.
- Remove the theming Maestro flows, verify-themes.sh, check-theme-color.js,
pngjs, the CI 'Verify theming' steps, and the runner post-steps.1 parent 3106999 commit 60cd61f
12 files changed
Lines changed: 68 additions & 276 deletions
File tree
- .github/workflows
- integration/mobile
- flows/theming
- scripts
- packages/expo
- src/__tests__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
597 | 597 | | |
598 | 598 | | |
599 | 599 | | |
600 | | - | |
601 | | - | |
602 | | - | |
603 | | - | |
604 | | - | |
605 | | - | |
606 | | - | |
607 | | - | |
608 | | - | |
609 | 600 | | |
610 | 601 | | |
611 | 602 | | |
| |||
1039 | 1030 | | |
1040 | 1031 | | |
1041 | 1032 | | |
1042 | | - | |
1043 | | - | |
1044 | | - | |
1045 | | - | |
1046 | | - | |
1047 | | - | |
1048 | | - | |
1049 | 1033 | | |
1050 | 1034 | | |
1051 | 1035 | | |
| |||
Lines changed: 0 additions & 25 deletions
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | 41 | | |
48 | 42 | | |
49 | 43 | | |
50 | 44 | | |
51 | 45 | | |
52 | 46 | | |
53 | 47 | | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | 44 | | |
51 | 45 | | |
52 | 46 | | |
53 | 47 | | |
54 | 48 | | |
55 | 49 | | |
56 | 50 | | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
16 | 18 | | |
17 | 19 | | |
18 | | - | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
This file was deleted.
0 commit comments