Commit 005be06
authored
feat: expose deviceDetails in healthcheck endpoint for responsive capture (#2112)
* feat: add deviceDetails to healthcheck endpoint and SDK
- Export complete deviceDetails object from /percy/healthcheck endpoint
- Store deviceDetails in percy object in sdk-utils for easy access
- Previously only device widths were available, now full device info is accessible
* test: add tests for deviceDetails in healthcheck and SDK
- Add deviceDetails to expected healthcheck response validation
- Test deviceDetails is properly stored in percy object after isPercyEnabled
- Add test cases for both empty and populated deviceDetails scenarios
- Validate deviceDetails integration in /test/api/config test
* fixing tests1 parent 2fc7e5c commit 005be06
File tree
5 files changed
+37
-5
lines changed- packages
- core
- src
- test
- sdk-utils
- src
- test
5 files changed
+37
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| 92 | + | |
92 | 93 | | |
93 | 94 | | |
94 | 95 | | |
| |||
216 | 217 | | |
217 | 218 | | |
218 | 219 | | |
219 | | - | |
| 220 | + | |
| 221 | + | |
220 | 222 | | |
221 | 223 | | |
222 | 224 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
64 | 65 | | |
65 | 66 | | |
66 | 67 | | |
| |||
88 | 89 | | |
89 | 90 | | |
90 | 91 | | |
91 | | - | |
| 92 | + | |
| 93 | + | |
92 | 94 | | |
93 | 95 | | |
94 | 96 | | |
| |||
741 | 743 | | |
742 | 744 | | |
743 | 745 | | |
744 | | - | |
| 746 | + | |
745 | 747 | | |
746 | 748 | | |
| 749 | + | |
747 | 750 | | |
748 | 751 | | |
749 | | - | |
| 752 | + | |
750 | 753 | | |
751 | 754 | | |
752 | 755 | | |
| 756 | + | |
753 | 757 | | |
754 | 758 | | |
755 | | - | |
| 759 | + | |
756 | 760 | | |
757 | 761 | | |
758 | 762 | | |
| 763 | + | |
759 | 764 | | |
760 | 765 | | |
761 | 766 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
69 | 73 | | |
70 | 74 | | |
71 | 75 | | |
| |||
117 | 121 | | |
118 | 122 | | |
119 | 123 | | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
120 | 143 | | |
121 | 144 | | |
122 | 145 | | |
| |||
0 commit comments