-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Take snapshots of form previews (#3203)
Co-authored-by: camertron <[email protected]>
- Loading branch information
Showing
154 changed files
with
231 additions
and
7 deletions.
There are no files selected for viewing
Binary file added
BIN
+14.6 KB
.../screenshots/snapshots.test.ts-snapshots/primer/forms/action_menu_form/dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+14.6 KB
...s/snapshots.test.ts-snapshots/primer/forms/action_menu_form/dark_colorblind.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+15.9 KB
...shots/snapshots.test.ts-snapshots/primer/forms/action_menu_form/dark_dimmed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+14 KB
...napshots.test.ts-snapshots/primer/forms/action_menu_form/dark_high_contrast.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+57.2 KB
...reenshots/snapshots.test.ts-snapshots/primer/forms/action_menu_form/default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+57.2 KB
...reenshots/snapshots.test.ts-snapshots/primer/forms/action_menu_form/focused.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+14.8 KB
...screenshots/snapshots.test.ts-snapshots/primer/forms/action_menu_form/light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+14.8 KB
.../snapshots.test.ts-snapshots/primer/forms/action_menu_form/light_colorblind.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+14.8 KB
...apshots.test.ts-snapshots/primer/forms/action_menu_form/light_high_contrast.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+46.4 KB
...enshots/snapshots.test.ts-snapshots/primer/forms/after_content_form/default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+46.4 KB
...enshots/snapshots.test.ts-snapshots/primer/forms/after_content_form/focused.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+15.4 KB
...ts/snapshots.test.ts-snapshots/primer/forms/array_check_box_group_form/dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+15.4 KB
...s.test.ts-snapshots/primer/forms/array_check_box_group_form/dark_colorblind.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+15.3 KB
...shots.test.ts-snapshots/primer/forms/array_check_box_group_form/dark_dimmed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+15.4 KB
...est.ts-snapshots/primer/forms/array_check_box_group_form/dark_high_contrast.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+90.2 KB
...snapshots.test.ts-snapshots/primer/forms/array_check_box_group_form/default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+90.6 KB
...snapshots.test.ts-snapshots/primer/forms/array_check_box_group_form/focused.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+15.3 KB
...s/snapshots.test.ts-snapshots/primer/forms/array_check_box_group_form/light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+15.3 KB
....test.ts-snapshots/primer/forms/array_check_box_group_form/light_colorblind.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+15.3 KB
...st.ts-snapshots/primer/forms/array_check_box_group_form/light_high_contrast.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+61.2 KB
...enshots/snapshots.test.ts-snapshots/primer/forms/auto_complete_form/default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+61.2 KB
...enshots/snapshots.test.ts-snapshots/primer/forms/auto_complete_form/focused.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+189 KB
...hots/snapshots.test.ts-snapshots/primer/forms/caption_template_form/default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+189 KB
...hots/snapshots.test.ts-snapshots/primer/forms/caption_template_form/focused.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+19 KB
...eenshots/snapshots.test.ts-snapshots/primer/forms/check_box_group_form/dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+19 KB
...apshots.test.ts-snapshots/primer/forms/check_box_group_form/dark_colorblind.png
Oops, something went wrong.
Binary file added
BIN
+18.9 KB
...s/snapshots.test.ts-snapshots/primer/forms/check_box_group_form/dark_dimmed.png
Oops, something went wrong.
Binary file added
BIN
+19 KB
...hots.test.ts-snapshots/primer/forms/check_box_group_form/dark_high_contrast.png
Oops, something went wrong.
Binary file added
BIN
+120 KB
...shots/snapshots.test.ts-snapshots/primer/forms/check_box_group_form/default.png
Oops, something went wrong.
Binary file added
BIN
+120 KB
...shots/snapshots.test.ts-snapshots/primer/forms/check_box_group_form/focused.png
Oops, something went wrong.
Binary file added
BIN
+19 KB
...enshots/snapshots.test.ts-snapshots/primer/forms/check_box_group_form/light.png
Oops, something went wrong.
Binary file added
BIN
+19 KB
...pshots.test.ts-snapshots/primer/forms/check_box_group_form/light_colorblind.png
Oops, something went wrong.
Binary file added
BIN
+18.9 KB
...ots.test.ts-snapshots/primer/forms/check_box_group_form/light_high_contrast.png
Oops, something went wrong.
Binary file added
BIN
+11.8 KB
...ts/snapshots.test.ts-snapshots/primer/forms/check_box_with_nested_form/dark.png
Oops, something went wrong.
Binary file added
BIN
+11.8 KB
...s.test.ts-snapshots/primer/forms/check_box_with_nested_form/dark_colorblind.png
Oops, something went wrong.
Binary file added
BIN
+11.8 KB
...shots.test.ts-snapshots/primer/forms/check_box_with_nested_form/dark_dimmed.png
Oops, something went wrong.
Binary file added
BIN
+11.6 KB
...est.ts-snapshots/primer/forms/check_box_with_nested_form/dark_high_contrast.png
Oops, something went wrong.
Binary file added
BIN
+65.4 KB
...snapshots.test.ts-snapshots/primer/forms/check_box_with_nested_form/default.png
Oops, something went wrong.
Binary file added
BIN
+65.8 KB
...snapshots.test.ts-snapshots/primer/forms/check_box_with_nested_form/focused.png
Oops, something went wrong.
Binary file added
BIN
+11.7 KB
...s/snapshots.test.ts-snapshots/primer/forms/check_box_with_nested_form/light.png
Oops, something went wrong.
Binary file added
BIN
+11.7 KB
....test.ts-snapshots/primer/forms/check_box_with_nested_form/light_colorblind.png
Oops, something went wrong.
Binary file added
BIN
+11.6 KB
...st.ts-snapshots/primer/forms/check_box_with_nested_form/light_high_contrast.png
Oops, something went wrong.
Binary file added
BIN
+17.8 KB
...ght/screenshots/snapshots.test.ts-snapshots/primer/forms/composed_form/dark.png
Oops, something went wrong.
Binary file added
BIN
+17.8 KB
...hots/snapshots.test.ts-snapshots/primer/forms/composed_form/dark_colorblind.png
Oops, something went wrong.
Binary file added
BIN
+17.7 KB
...eenshots/snapshots.test.ts-snapshots/primer/forms/composed_form/dark_dimmed.png
Oops, something went wrong.
Binary file added
BIN
+17.7 KB
...s/snapshots.test.ts-snapshots/primer/forms/composed_form/dark_high_contrast.png
Oops, something went wrong.
Binary file added
BIN
+111 KB
.../screenshots/snapshots.test.ts-snapshots/primer/forms/composed_form/default.png
Oops, something went wrong.
Binary file added
BIN
+111 KB
.../screenshots/snapshots.test.ts-snapshots/primer/forms/composed_form/focused.png
Oops, something went wrong.
Binary file added
BIN
+17.8 KB
...ht/screenshots/snapshots.test.ts-snapshots/primer/forms/composed_form/light.png
Oops, something went wrong.
Binary file added
BIN
+17.8 KB
...ots/snapshots.test.ts-snapshots/primer/forms/composed_form/light_colorblind.png
Oops, something went wrong.
Binary file added
BIN
+17.6 KB
.../snapshots.test.ts-snapshots/primer/forms/composed_form/light_high_contrast.png
Oops, something went wrong.
Binary file added
BIN
+18.1 KB
...ts/snapshots.test.ts-snapshots/primer/forms/example_toggle_switch_form/dark.png
Oops, something went wrong.
Binary file added
BIN
+18.1 KB
...s.test.ts-snapshots/primer/forms/example_toggle_switch_form/dark_colorblind.png
Oops, something went wrong.
Binary file added
BIN
+18 KB
...shots.test.ts-snapshots/primer/forms/example_toggle_switch_form/dark_dimmed.png
Oops, something went wrong.
Binary file added
BIN
+18.3 KB
...est.ts-snapshots/primer/forms/example_toggle_switch_form/dark_high_contrast.png
Oops, something went wrong.
Binary file added
BIN
+107 KB
...snapshots.test.ts-snapshots/primer/forms/example_toggle_switch_form/default.png
Oops, something went wrong.
Binary file added
BIN
+108 KB
...snapshots.test.ts-snapshots/primer/forms/example_toggle_switch_form/focused.png
Oops, something went wrong.
Binary file added
BIN
+18.1 KB
...s/snapshots.test.ts-snapshots/primer/forms/example_toggle_switch_form/light.png
Oops, something went wrong.
Binary file added
BIN
+18.1 KB
....test.ts-snapshots/primer/forms/example_toggle_switch_form/light_colorblind.png
Oops, something went wrong.
Binary file added
BIN
+18.1 KB
...st.ts-snapshots/primer/forms/example_toggle_switch_form/light_high_contrast.png
Oops, something went wrong.
Binary file added
BIN
+21.7 KB
...t/screenshots/snapshots.test.ts-snapshots/primer/forms/horizontal_form/dark.png
Oops, something went wrong.
Binary file added
BIN
+21.7 KB
...ts/snapshots.test.ts-snapshots/primer/forms/horizontal_form/dark_colorblind.png
Oops, something went wrong.
Binary file added
BIN
+21.6 KB
...nshots/snapshots.test.ts-snapshots/primer/forms/horizontal_form/dark_dimmed.png
Oops, something went wrong.
Binary file added
BIN
+21.6 KB
...snapshots.test.ts-snapshots/primer/forms/horizontal_form/dark_high_contrast.png
Oops, something went wrong.
Binary file added
BIN
+138 KB
...creenshots/snapshots.test.ts-snapshots/primer/forms/horizontal_form/default.png
Oops, something went wrong.
Binary file added
BIN
+139 KB
...creenshots/snapshots.test.ts-snapshots/primer/forms/horizontal_form/focused.png
Oops, something went wrong.
Binary file added
BIN
+21.7 KB
.../screenshots/snapshots.test.ts-snapshots/primer/forms/horizontal_form/light.png
Oops, something went wrong.
Binary file added
BIN
+21.7 KB
...s/snapshots.test.ts-snapshots/primer/forms/horizontal_form/light_colorblind.png
Oops, something went wrong.
Binary file added
BIN
+21.7 KB
...napshots.test.ts-snapshots/primer/forms/horizontal_form/light_high_contrast.png
Oops, something went wrong.
Binary file added
BIN
+25.7 KB
...ots/snapshots.test.ts-snapshots/primer/forms/immediate_validation_form/dark.png
Oops, something went wrong.
Binary file added
BIN
+25.7 KB
...ts.test.ts-snapshots/primer/forms/immediate_validation_form/dark_colorblind.png
Oops, something went wrong.
Binary file added
BIN
+25.4 KB
...pshots.test.ts-snapshots/primer/forms/immediate_validation_form/dark_dimmed.png
Oops, something went wrong.
Binary file added
BIN
+26 KB
...test.ts-snapshots/primer/forms/immediate_validation_form/dark_high_contrast.png
Oops, something went wrong.
Binary file added
BIN
+169 KB
.../snapshots.test.ts-snapshots/primer/forms/immediate_validation_form/default.png
Oops, something went wrong.
Binary file added
BIN
+169 KB
.../snapshots.test.ts-snapshots/primer/forms/immediate_validation_form/focused.png
Oops, something went wrong.
Binary file added
BIN
+25.7 KB
...ts/snapshots.test.ts-snapshots/primer/forms/immediate_validation_form/light.png
Oops, something went wrong.
Binary file added
BIN
+25.7 KB
...s.test.ts-snapshots/primer/forms/immediate_validation_form/light_colorblind.png
Oops, something went wrong.
Binary file added
BIN
+25.9 KB
...est.ts-snapshots/primer/forms/immediate_validation_form/light_high_contrast.png
Oops, something went wrong.
Binary file added
BIN
+15.9 KB
...ight/screenshots/snapshots.test.ts-snapshots/primer/forms/invalid_form/dark.png
Oops, something went wrong.
Binary file added
BIN
+15.9 KB
...shots/snapshots.test.ts-snapshots/primer/forms/invalid_form/dark_colorblind.png
Oops, something went wrong.
Binary file added
BIN
+15.7 KB
...reenshots/snapshots.test.ts-snapshots/primer/forms/invalid_form/dark_dimmed.png
Oops, something went wrong.
Binary file added
BIN
+16.1 KB
...ts/snapshots.test.ts-snapshots/primer/forms/invalid_form/dark_high_contrast.png
Oops, something went wrong.
Binary file added
BIN
+97.8 KB
...t/screenshots/snapshots.test.ts-snapshots/primer/forms/invalid_form/default.png
Oops, something went wrong.
Binary file added
BIN
+97.8 KB
...t/screenshots/snapshots.test.ts-snapshots/primer/forms/invalid_form/focused.png
Oops, something went wrong.
Binary file added
BIN
+16 KB
...ght/screenshots/snapshots.test.ts-snapshots/primer/forms/invalid_form/light.png
Oops, something went wrong.
Binary file added
BIN
+16 KB
...hots/snapshots.test.ts-snapshots/primer/forms/invalid_form/light_colorblind.png
Oops, something went wrong.
Binary file added
BIN
+16.1 KB
...s/snapshots.test.ts-snapshots/primer/forms/invalid_form/light_high_contrast.png
Oops, something went wrong.
Binary file added
BIN
+75 KB
...reenshots/snapshots.test.ts-snapshots/primer/forms/multi_input_form/default.png
Oops, something went wrong.
Binary file added
BIN
+75.7 KB
...reenshots/snapshots.test.ts-snapshots/primer/forms/multi_input_form/focused.png
Oops, something went wrong.
Binary file added
BIN
+13.9 KB
...enshots/snapshots.test.ts-snapshots/primer/forms/multi_text_field_form/dark.png
Oops, something went wrong.
Binary file added
BIN
+13.9 KB
...pshots.test.ts-snapshots/primer/forms/multi_text_field_form/dark_colorblind.png
Oops, something went wrong.
Binary file added
BIN
+13.7 KB
.../snapshots.test.ts-snapshots/primer/forms/multi_text_field_form/dark_dimmed.png
Oops, something went wrong.
Binary file added
BIN
+13.9 KB
...ots.test.ts-snapshots/primer/forms/multi_text_field_form/dark_high_contrast.png
Oops, something went wrong.
Binary file added
BIN
+83.7 KB
...hots/snapshots.test.ts-snapshots/primer/forms/multi_text_field_form/default.png
Oops, something went wrong.
Binary file added
BIN
+83.8 KB
...hots/snapshots.test.ts-snapshots/primer/forms/multi_text_field_form/focused.png
Oops, something went wrong.
Binary file added
BIN
+13.8 KB
...nshots/snapshots.test.ts-snapshots/primer/forms/multi_text_field_form/light.png
Oops, something went wrong.
Binary file added
BIN
+13.8 KB
...shots.test.ts-snapshots/primer/forms/multi_text_field_form/light_colorblind.png
Oops, something went wrong.
Binary file added
BIN
+13.9 KB
...ts.test.ts-snapshots/primer/forms/multi_text_field_form/light_high_contrast.png
Oops, something went wrong.
Binary file added
BIN
+8.12 KB
.../snapshots.test.ts-snapshots/primer/forms/name_with_question_mark_form/dark.png
Oops, something went wrong.
Binary file added
BIN
+8.12 KB
...test.ts-snapshots/primer/forms/name_with_question_mark_form/dark_colorblind.png
Oops, something went wrong.
Binary file added
BIN
+8.03 KB
...ots.test.ts-snapshots/primer/forms/name_with_question_mark_form/dark_dimmed.png
Oops, something went wrong.
Binary file added
BIN
+8.16 KB
...t.ts-snapshots/primer/forms/name_with_question_mark_form/dark_high_contrast.png
Oops, something went wrong.
Binary file added
BIN
+34.9 KB
...apshots.test.ts-snapshots/primer/forms/name_with_question_mark_form/default.png
Oops, something went wrong.
Binary file added
BIN
+35.4 KB
...apshots.test.ts-snapshots/primer/forms/name_with_question_mark_form/focused.png
Oops, something went wrong.
Binary file added
BIN
+8.09 KB
...snapshots.test.ts-snapshots/primer/forms/name_with_question_mark_form/light.png
Oops, something went wrong.
Binary file added
BIN
+8.09 KB
...est.ts-snapshots/primer/forms/name_with_question_mark_form/light_colorblind.png
Oops, something went wrong.
Binary file added
BIN
+8.12 KB
....ts-snapshots/primer/forms/name_with_question_mark_form/light_high_contrast.png
Oops, something went wrong.
Binary file added
BIN
+23.1 KB
...shots/snapshots.test.ts-snapshots/primer/forms/radio_button_group_form/dark.png
Oops, something went wrong.
Binary file added
BIN
+23.1 KB
...hots.test.ts-snapshots/primer/forms/radio_button_group_form/dark_colorblind.png
Oops, something went wrong.
Binary file added
BIN
+23 KB
...napshots.test.ts-snapshots/primer/forms/radio_button_group_form/dark_dimmed.png
Oops, something went wrong.
Binary file added
BIN
+23.1 KB
...s.test.ts-snapshots/primer/forms/radio_button_group_form/dark_high_contrast.png
Oops, something went wrong.
Binary file added
BIN
+145 KB
...ts/snapshots.test.ts-snapshots/primer/forms/radio_button_group_form/default.png
Oops, something went wrong.
Binary file added
BIN
+146 KB
...ts/snapshots.test.ts-snapshots/primer/forms/radio_button_group_form/focused.png
Oops, something went wrong.
Binary file added
BIN
+23.1 KB
...hots/snapshots.test.ts-snapshots/primer/forms/radio_button_group_form/light.png
Oops, something went wrong.
Binary file added
BIN
+23.1 KB
...ots.test.ts-snapshots/primer/forms/radio_button_group_form/light_colorblind.png
Oops, something went wrong.
Binary file added
BIN
+23.1 KB
....test.ts-snapshots/primer/forms/radio_button_group_form/light_high_contrast.png
Oops, something went wrong.
Binary file added
BIN
+26.6 KB
...snapshots.test.ts-snapshots/primer/forms/radio_button_with_nested_form/dark.png
Oops, something went wrong.
Binary file added
BIN
+26.6 KB
...est.ts-snapshots/primer/forms/radio_button_with_nested_form/dark_colorblind.png
Oops, something went wrong.
Binary file added
BIN
+26.6 KB
...ts.test.ts-snapshots/primer/forms/radio_button_with_nested_form/dark_dimmed.png
Oops, something went wrong.
Binary file added
BIN
+26.5 KB
....ts-snapshots/primer/forms/radio_button_with_nested_form/dark_high_contrast.png
Oops, something went wrong.
Binary file added
BIN
+174 KB
...pshots.test.ts-snapshots/primer/forms/radio_button_with_nested_form/default.png
Oops, something went wrong.
Binary file added
BIN
+175 KB
...pshots.test.ts-snapshots/primer/forms/radio_button_with_nested_form/focused.png
Oops, something went wrong.
Binary file added
BIN
+26.5 KB
...napshots.test.ts-snapshots/primer/forms/radio_button_with_nested_form/light.png
Oops, something went wrong.
Binary file added
BIN
+26.5 KB
...st.ts-snapshots/primer/forms/radio_button_with_nested_form/light_colorblind.png
Oops, something went wrong.
Binary file added
BIN
+26.5 KB
...ts-snapshots/primer/forms/radio_button_with_nested_form/light_high_contrast.png
Oops, something went wrong.
Binary file added
BIN
+23.9 KB
...right/screenshots/snapshots.test.ts-snapshots/primer/forms/select_form/dark.png
Oops, something went wrong.
Binary file added
BIN
+23.9 KB
...nshots/snapshots.test.ts-snapshots/primer/forms/select_form/dark_colorblind.png
Oops, something went wrong.
Binary file added
BIN
+24.2 KB
...creenshots/snapshots.test.ts-snapshots/primer/forms/select_form/dark_dimmed.png
Oops, something went wrong.
Binary file added
BIN
+23.8 KB
...ots/snapshots.test.ts-snapshots/primer/forms/select_form/dark_high_contrast.png
Oops, something went wrong.
Binary file added
BIN
+136 KB
...ht/screenshots/snapshots.test.ts-snapshots/primer/forms/select_form/default.png
Oops, something went wrong.
Binary file added
BIN
+136 KB
...ht/screenshots/snapshots.test.ts-snapshots/primer/forms/select_form/focused.png
Oops, something went wrong.
Binary file added
BIN
+23.7 KB
...ight/screenshots/snapshots.test.ts-snapshots/primer/forms/select_form/light.png
Oops, something went wrong.
Binary file added
BIN
+23.7 KB
...shots/snapshots.test.ts-snapshots/primer/forms/select_form/light_colorblind.png
Oops, something went wrong.
Binary file added
BIN
+23.7 KB
...ts/snapshots.test.ts-snapshots/primer/forms/select_form/light_high_contrast.png
Oops, something went wrong.
Binary file added
BIN
+51.7 KB
...ots/snapshots.test.ts-snapshots/primer/forms/single_text_field_form/default.png
Oops, something went wrong.
Binary file added
BIN
+51.8 KB
...ots/snapshots.test.ts-snapshots/primer/forms/single_text_field_form/focused.png
Oops, something went wrong.
Binary file added
BIN
+18.3 KB
...creenshots/snapshots.test.ts-snapshots/primer/forms/submit_button_form/dark.png
Oops, something went wrong.
Binary file added
BIN
+18.3 KB
...snapshots.test.ts-snapshots/primer/forms/submit_button_form/dark_colorblind.png
Oops, something went wrong.
Binary file added
BIN
+18.1 KB
...ots/snapshots.test.ts-snapshots/primer/forms/submit_button_form/dark_dimmed.png
Oops, something went wrong.
Binary file added
BIN
+18.5 KB
...pshots.test.ts-snapshots/primer/forms/submit_button_form/dark_high_contrast.png
Oops, something went wrong.
Binary file added
BIN
+123 KB
...enshots/snapshots.test.ts-snapshots/primer/forms/submit_button_form/default.png
Oops, something went wrong.
Binary file added
BIN
+123 KB
...enshots/snapshots.test.ts-snapshots/primer/forms/submit_button_form/focused.png
Oops, something went wrong.
Binary file added
BIN
+18.3 KB
...reenshots/snapshots.test.ts-snapshots/primer/forms/submit_button_form/light.png
Oops, something went wrong.
Binary file added
BIN
+18 KB
...napshots.test.ts-snapshots/primer/forms/submit_button_form/light_colorblind.png
Oops, something went wrong.
Binary file added
BIN
+18.4 KB
...shots.test.ts-snapshots/primer/forms/submit_button_form/light_high_contrast.png
Oops, something went wrong.
Binary file added
BIN
+102 KB
...apshots.test.ts-snapshots/primer/forms/text_field_and_checkbox_form/default.png
Oops, something went wrong.
Binary file added
BIN
+102 KB
...apshots.test.ts-snapshots/primer/forms/text_field_and_checkbox_form/focused.png
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# frozen_string_literal: true | ||
|
||
# :nocov: | ||
|
||
require "json" | ||
|
||
module Primer | ||
module Static | ||
# :nodoc: | ||
module GenerateFormPreviews | ||
class << self | ||
def call | ||
Lookbook.previews.filter_map do |preview| | ||
next unless preview.preview_class == Primer::FormsPreview | ||
|
||
{ | ||
name: preview.name, | ||
lookup_path: preview.lookup_path, | ||
examples: preview.scenarios.flat_map do |parent_scenario| | ||
scenarios = parent_scenario.type == :scenario_group ? parent_scenario.scenarios : [parent_scenario] | ||
|
||
scenarios.map do |scenario| | ||
snapshot_tag = scenario.tags.find { |tag| tag.tag_name == "snapshot" } | ||
snapshot = if snapshot_tag.nil? | ||
"false" | ||
elsif snapshot_tag.text.blank? | ||
"true" | ||
else | ||
snapshot_tag.text | ||
end | ||
{ | ||
preview_path: scenario.lookup_path, | ||
name: scenario.name, | ||
snapshot: snapshot | ||
} | ||
end | ||
end | ||
} | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
[ | ||
{ | ||
"name": "forms", | ||
"lookup_path": "primer/forms", | ||
"examples": [ | ||
{ | ||
"preview_path": "primer/forms/single_text_field_form", | ||
"name": "single_text_field_form", | ||
"snapshot": "true" | ||
}, | ||
{ | ||
"preview_path": "primer/forms/multi_text_field_form", | ||
"name": "multi_text_field_form", | ||
"snapshot": "true" | ||
}, | ||
{ | ||
"preview_path": "primer/forms/text_field_and_checkbox_form", | ||
"name": "text_field_and_checkbox_form", | ||
"snapshot": "true" | ||
}, | ||
{ | ||
"preview_path": "primer/forms/horizontal_form", | ||
"name": "horizontal_form", | ||
"snapshot": "true" | ||
}, | ||
{ | ||
"preview_path": "primer/forms/composed_form", | ||
"name": "composed_form", | ||
"snapshot": "true" | ||
}, | ||
{ | ||
"preview_path": "primer/forms/submit_button_form", | ||
"name": "submit_button_form", | ||
"snapshot": "true" | ||
}, | ||
{ | ||
"preview_path": "primer/forms/radio_button_group_form", | ||
"name": "radio_button_group_form", | ||
"snapshot": "true" | ||
}, | ||
{ | ||
"preview_path": "primer/forms/check_box_group_form", | ||
"name": "check_box_group_form", | ||
"snapshot": "true" | ||
}, | ||
{ | ||
"preview_path": "primer/forms/array_check_box_group_form", | ||
"name": "array_check_box_group_form", | ||
"snapshot": "true" | ||
}, | ||
{ | ||
"preview_path": "primer/forms/select_form", | ||
"name": "select_form", | ||
"snapshot": "true" | ||
}, | ||
{ | ||
"preview_path": "primer/forms/action_menu_form", | ||
"name": "action_menu_form", | ||
"snapshot": "true" | ||
}, | ||
{ | ||
"preview_path": "primer/forms/radio_button_with_nested_form", | ||
"name": "radio_button_with_nested_form", | ||
"snapshot": "true" | ||
}, | ||
{ | ||
"preview_path": "primer/forms/check_box_with_nested_form", | ||
"name": "check_box_with_nested_form", | ||
"snapshot": "true" | ||
}, | ||
{ | ||
"preview_path": "primer/forms/caption_template_form", | ||
"name": "caption_template_form", | ||
"snapshot": "true" | ||
}, | ||
{ | ||
"preview_path": "primer/forms/after_content_form", | ||
"name": "after_content_form", | ||
"snapshot": "true" | ||
}, | ||
{ | ||
"preview_path": "primer/forms/invalid_form", | ||
"name": "invalid_form", | ||
"snapshot": "true" | ||
}, | ||
{ | ||
"preview_path": "primer/forms/multi_input_form", | ||
"name": "multi_input_form", | ||
"snapshot": "true" | ||
}, | ||
{ | ||
"preview_path": "primer/forms/name_with_question_mark_form", | ||
"name": "name_with_question_mark_form", | ||
"snapshot": "true" | ||
}, | ||
{ | ||
"preview_path": "primer/forms/immediate_validation_form", | ||
"name": "immediate_validation_form", | ||
"snapshot": "true" | ||
}, | ||
{ | ||
"preview_path": "primer/forms/example_toggle_switch_form", | ||
"name": "example_toggle_switch_form", | ||
"snapshot": "true" | ||
}, | ||
{ | ||
"preview_path": "primer/forms/auto_complete_form", | ||
"name": "auto_complete_form", | ||
"snapshot": "true" | ||
} | ||
] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters