Commit b172f46
Add E2E tests for Text boxShadow and textWithLinkRole (#55961)
Summary:
Pull Request resolved: #55961
Add E2E tests for 2 uncovered Text examples in RNTester:
- boxShadow: screenshot test using existing testID 'text-box-shadow'
- textWithLinkRole: interaction test that screenshots before and after pressing
the link (which changes its color from teal to red)
Source changes:
- Added testID="text-with-link-role" to root View in TextWithLinkRoleExample
- Added testID="text-link-role-link" to the first link Text element
- Added useState to toggle link color on press (teal -> red)
Reviewed By: cortinico
Differential Revision: D95359182
fbshipit-source-id: c823b1c0c071aed0750b3cf3f2d7d6b88da875731 parent 66975aa commit b172f46
File tree
1 file changed
+9
-3
lines changed- packages/rn-tester/js/examples/Text
1 file changed
+9
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
197 | | - | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
198 | 200 | | |
199 | 201 | | |
200 | | - | |
201 | | - | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
202 | 208 | | |
203 | 209 | | |
204 | 210 | | |
| |||
0 commit comments