Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[quick-test] docs(changeset): Update tests and fix snapshots from feature branch rebase #2241

Merged
merged 2 commits into from
Feb 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/weak-zoos-march.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@khanacademy/perseus": patch
---

Update tests and fix snapshots from feature branch rebase
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ exports[`renderer snapshots correct answer: correct answer 1`] = `
aria-haspopup="listbox"
aria-invalid="false"
aria-label="Test ARIA label"
class="button_vr44p2-o_O-shared_u51dsh-o_O-default_3ie67y"
class="button_vr44p2-o_O-shared_u51dsh-o_O-default_13mg2xx"
id=":r3:"
role="combobox"
type="button"
Expand All @@ -396,7 +396,7 @@ exports[`renderer snapshots correct answer: correct answer 1`] = `
</span>
<span
aria-hidden="true"
class="svg_1q6jc65-o_O-icon_eocf2p-o_O-caret_ntkmq-o_O-inlineStyles_u7ovp6"
class="svg_1q6jc65-o_O-icon_wnyn4t-o_O-caret_ntkmq-o_O-inlineStyles_u7ovp6"
/>
</button>
</div>
Expand Down Expand Up @@ -463,7 +463,7 @@ exports[`renderer snapshots incorrect answer: incorrect answer 1`] = `
aria-haspopup="listbox"
aria-invalid="false"
aria-label="Test ARIA label"
class="button_vr44p2-o_O-shared_u51dsh-o_O-default_3ie67y"
class="button_vr44p2-o_O-shared_u51dsh-o_O-default_13mg2xx"
id=":r6:"
role="combobox"
type="button"
Expand All @@ -488,7 +488,7 @@ exports[`renderer snapshots incorrect answer: incorrect answer 1`] = `
</span>
<span
aria-hidden="true"
class="svg_1q6jc65-o_O-icon_eocf2p-o_O-caret_ntkmq-o_O-inlineStyles_u7ovp6"
class="svg_1q6jc65-o_O-icon_wnyn4t-o_O-caret_ntkmq-o_O-inlineStyles_u7ovp6"
/>
</button>
</div>
Expand Down Expand Up @@ -555,7 +555,7 @@ exports[`renderer snapshots initial render: initial render 1`] = `
aria-haspopup="listbox"
aria-invalid="false"
aria-label="Test ARIA label"
class="button_vr44p2-o_O-shared_u51dsh-o_O-default_3ie67y"
class="button_vr44p2-o_O-shared_u51dsh-o_O-default_13mg2xx"
id=":r0:"
role="combobox"
type="button"
Expand All @@ -580,7 +580,7 @@ exports[`renderer snapshots initial render: initial render 1`] = `
</span>
<span
aria-hidden="true"
class="svg_1q6jc65-o_O-icon_eocf2p-o_O-caret_ntkmq-o_O-inlineStyles_u7ovp6"
class="svg_1q6jc65-o_O-icon_wnyn4t-o_O-caret_ntkmq-o_O-inlineStyles_u7ovp6"
/>
</button>
</div>
Expand Down Expand Up @@ -635,7 +635,7 @@ exports[`renderer snapshots renders a placeholder for a deprecated widget: depre
>
<span
aria-label="info"
class="svg_1q6jc65-o_O-icon_1521uiv-o_O-icon_16tp01m-o_O-inlineStyles_94g682"
class="svg_1q6jc65-o_O-icon_1521uiv-o_O-icon_gcwxx2-o_O-inlineStyles_94g682"
data-testid="banner-kind-icon"
role="img"
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ exports[`server item renderer should snapshot: initial render 1`] = `
aria-invalid="false"
aria-label="Mock Widget"
aria-required="false"
class="input_1ck1z8k-o_O-LabelMedium_1rew30o-o_O-default_53h0n9-o_O-defaultFocus_9n1kv3"
class="input_1ck1z8k-o_O-LabelMedium_1rew30o-o_O-default_1tc7wjm-o_O-defaultFocus_lrnqlz"
id="mock-widget 1"
role="textbox"
type="text"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ exports[`Deprecated Standin widget should have a default snapshot: first render
>
<span
aria-label="info"
class="svg_1q6jc65-o_O-icon_1521uiv-o_O-icon_16tp01m-o_O-inlineStyles_94g682"
class="svg_1q6jc65-o_O-icon_1521uiv-o_O-icon_gcwxx2-o_O-inlineStyles_94g682"
data-testid="banner-kind-icon"
role="img"
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ exports[`Dropdown widget should snapshot when opened: dropdown open 1`] = `
aria-haspopup="listbox"
aria-invalid="false"
aria-label="Select an answer"
class="button_vr44p2-o_O-shared_u51dsh-o_O-default_3ie67y"
class="button_vr44p2-o_O-shared_u51dsh-o_O-default_13mg2xx"
id=":r3:"
role="combobox"
type="button"
Expand All @@ -63,7 +63,7 @@ exports[`Dropdown widget should snapshot when opened: dropdown open 1`] = `
</span>
<span
aria-hidden="true"
class="svg_1q6jc65-o_O-icon_eocf2p-o_O-caret_ntkmq-o_O-inlineStyles_u7ovp6"
class="svg_1q6jc65-o_O-icon_wnyn4t-o_O-caret_ntkmq-o_O-inlineStyles_u7ovp6"
/>
</button>
</div>
Expand Down Expand Up @@ -124,7 +124,7 @@ exports[`Dropdown widget should snapshot: initial render 1`] = `
aria-haspopup="listbox"
aria-invalid="false"
aria-label="Select an answer"
class="button_vr44p2-o_O-shared_u51dsh-o_O-default_3ie67y"
class="button_vr44p2-o_O-shared_u51dsh-o_O-default_13mg2xx"
id=":r0:"
role="combobox"
type="button"
Expand All @@ -149,7 +149,7 @@ exports[`Dropdown widget should snapshot: initial render 1`] = `
</span>
<span
aria-hidden="true"
class="svg_1q6jc65-o_O-icon_eocf2p-o_O-caret_ntkmq-o_O-inlineStyles_u7ovp6"
class="svg_1q6jc65-o_O-icon_wnyn4t-o_O-caret_ntkmq-o_O-inlineStyles_u7ovp6"
/>
</button>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ exports[`Explanation should snapshot when expanded: expanded 1`] = `
aria-controls=":r1:"
aria-disabled="false"
aria-expanded="true"
class="button_vr44p2-o_O-shared_lwskrm-o_O-default_qjb97o-o_O-small_14crccx-o_O-inlineStyles_1s8anjv"
class="button_vr44p2-o_O-shared_lwskrm-o_O-default_vhqsj0-o_O-small_14crccx-o_O-inlineStyles_1s8anjv"
role="button"
type="button"
>
Expand All @@ -31,7 +31,7 @@ exports[`Explanation should snapshot when expanded: expanded 1`] = `
Hide explanation!
</span>
<div
class="default_xu2jcg-o_O-iconWrapper_1nxzm3x-o_O-endIconWrapper_l32m71-o_O-endIconWrapperTertiary_10fyztj-o_O-iconWrapperSecondaryHovered_klcp8i"
class="default_xu2jcg-o_O-iconWrapper_1nxzm3x-o_O-endIconWrapper_l32m71-o_O-endIconWrapperTertiary_10fyztj"
>
<span
aria-hidden="true"
Expand Down Expand Up @@ -94,7 +94,7 @@ exports[`Explanation should snapshot: initial render 1`] = `
aria-controls=":r0:"
aria-disabled="false"
aria-expanded="false"
class="button_vr44p2-o_O-shared_lwskrm-o_O-default_qjb97o-o_O-small_14crccx-o_O-inlineStyles_1s8anjv"
class="button_vr44p2-o_O-shared_lwskrm-o_O-default_vhqsj0-o_O-small_14crccx-o_O-inlineStyles_1s8anjv"
role="button"
type="button"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ exports[`graded-group-set should render all graded groups 1`] = `
autocapitalize="off"
autocomplete="off"
autocorrect="off"
class="input_1ck1z8k-o_O-LabelMedium_1rew30o-o_O-default_53h0n9-o_O-defaultFocus_9n1kv3-o_O-inputWithExamples_1y6ajxo"
class="input_1ck1z8k-o_O-LabelMedium_1rew30o-o_O-default_1tc7wjm-o_O-defaultFocus_lrnqlz-o_O-inputWithExamples_1y6ajxo"
id="input-with-examples-bnVtZXJpYy1pbnB1dCAx"
tabindex="0"
type="text"
Expand All @@ -86,7 +86,7 @@ exports[`graded-group-set should render all graded groups 1`] = `
/>
<button
aria-disabled="false"
class="button_vr44p2-o_O-shared_lwskrm-o_O-default_pxdq54"
class="button_vr44p2-o_O-shared_lwskrm-o_O-default_ggcqzw"
role="button"
type="button"
>
Expand Down Expand Up @@ -143,7 +143,7 @@ exports[`graded-group-set should render all graded groups 1`] = `
autocapitalize="off"
autocomplete="off"
autocorrect="off"
class="input_1ck1z8k-o_O-LabelMedium_1rew30o-o_O-default_53h0n9-o_O-defaultFocus_9n1kv3-o_O-inputWithExamples_1y6ajxo"
class="input_1ck1z8k-o_O-LabelMedium_1rew30o-o_O-default_1tc7wjm-o_O-defaultFocus_lrnqlz-o_O-inputWithExamples_1y6ajxo"
id="input-with-examples-bnVtZXJpYy1pbnB1dCAx"
tabindex="0"
type="text"
Expand All @@ -163,7 +163,7 @@ exports[`graded-group-set should render all graded groups 1`] = `
/>
<button
aria-disabled="false"
class="button_vr44p2-o_O-shared_lwskrm-o_O-default_pxdq54"
class="button_vr44p2-o_O-shared_lwskrm-o_O-default_ggcqzw"
role="button"
type="button"
>
Expand Down Expand Up @@ -220,7 +220,7 @@ exports[`graded-group-set should render all graded groups 1`] = `
autocapitalize="off"
autocomplete="off"
autocorrect="off"
class="input_1ck1z8k-o_O-LabelMedium_1rew30o-o_O-default_53h0n9-o_O-defaultFocus_9n1kv3-o_O-inputWithExamples_1y6ajxo"
class="input_1ck1z8k-o_O-LabelMedium_1rew30o-o_O-default_1tc7wjm-o_O-defaultFocus_lrnqlz-o_O-inputWithExamples_1y6ajxo"
id="input-with-examples-bnVtZXJpYy1pbnB1dCAx"
tabindex="0"
type="text"
Expand All @@ -240,7 +240,7 @@ exports[`graded-group-set should render all graded groups 1`] = `
/>
<button
aria-disabled="false"
class="button_vr44p2-o_O-shared_lwskrm-o_O-default_pxdq54"
class="button_vr44p2-o_O-shared_lwskrm-o_O-default_ggcqzw"
role="button"
type="button"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ exports[`graded group widget should snapshot 1`] = `
autocapitalize="off"
autocomplete="off"
autocorrect="off"
class="input_1ck1z8k-o_O-LabelMedium_1rew30o-o_O-default_53h0n9-o_O-defaultFocus_9n1kv3-o_O-inputWithExamples_1y6ajxo"
class="input_1ck1z8k-o_O-LabelMedium_1rew30o-o_O-default_1tc7wjm-o_O-defaultFocus_lrnqlz-o_O-inputWithExamples_1y6ajxo"
id="input-with-examples-bnVtZXJpYy1pbnB1dCAx"
tabindex="0"
type="text"
Expand All @@ -152,7 +152,7 @@ exports[`graded group widget should snapshot 1`] = `
/>
<button
aria-disabled="false"
class="button_vr44p2-o_O-shared_lwskrm-o_O-default_pxdq54"
class="button_vr44p2-o_O-shared_lwskrm-o_O-default_ggcqzw"
role="button"
type="button"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ exports[`graded-group should snapshot: initial render (mobile: false) 1`] = `
/>
<button
aria-disabled="false"
class="button_vr44p2-o_O-shared_lwskrm-o_O-default_pxdq54"
class="button_vr44p2-o_O-shared_lwskrm-o_O-default_ggcqzw"
role="button"
type="button"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -755,7 +755,7 @@ exports[`group widget should snapshot: initial render 1`] = `
autocapitalize="off"
autocomplete="off"
autocorrect="off"
class="input_1ck1z8k-o_O-LabelMedium_1rew30o-o_O-default_53h0n9-o_O-defaultFocus_9n1kv3-o_O-inputWithExamples_1y6ajxo"
class="input_1ck1z8k-o_O-LabelMedium_1rew30o-o_O-default_1tc7wjm-o_O-defaultFocus_lrnqlz-o_O-inputWithExamples_1y6ajxo"
id="input-with-examples-bnVtZXJpYy1pbnB1dCAx"
tabindex="0"
type="text"
Expand Down Expand Up @@ -811,7 +811,7 @@ exports[`group widget should snapshot: initial render 1`] = `
autocapitalize="off"
autocomplete="off"
autocorrect="off"
class="input_1ck1z8k-o_O-LabelMedium_1rew30o-o_O-default_53h0n9-o_O-defaultFocus_9n1kv3-o_O-inputWithExamples_1y6ajxo"
class="input_1ck1z8k-o_O-LabelMedium_1rew30o-o_O-default_1tc7wjm-o_O-defaultFocus_lrnqlz-o_O-inputWithExamples_1y6ajxo"
id="input-with-examples-bnVtZXJpYy1pbnB1dCAy"
tabindex="0"
type="text"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2031,7 +2031,7 @@ exports[`Interactive Graph interactive-graph widget question Should render predi
>
<button
aria-disabled="false"
class="button_vr44p2-o_O-shared_lwskrm-o_O-default_1rnqd7l-o_O-inlineStyles_16y2sco"
class="button_vr44p2-o_O-shared_lwskrm-o_O-default_1m2y2k0-o_O-inlineStyles_16y2sco"
id="perseus_mafs_remove_button"
role="button"
tabindex="-1"
Expand Down Expand Up @@ -2288,7 +2288,7 @@ exports[`Interactive Graph interactive-graph widget question Should render predi
>
<button
aria-disabled="true"
class="button_vr44p2-o_O-shared_lwskrm-o_O-disabled_mqm918-o_O-default_1rnqd7l-o_O-disabled_1ocn25h-o_O-inlineStyles_1kc2paq"
class="button_vr44p2-o_O-shared_lwskrm-o_O-disabled_mqm918-o_O-default_1m2y2k0-o_O-disabled_oj20kr-o_O-inlineStyles_1kc2paq"
id="perseus_mafs_remove_button"
role="button"
tabindex="-1"
Expand All @@ -2302,7 +2302,7 @@ exports[`Interactive Graph interactive-graph widget question Should render predi
</button>
<button
aria-disabled="true"
class="button_vr44p2-o_O-shared_lwskrm-o_O-disabled_mqm918-o_O-default_pxdq54-o_O-disabled_1ocn25h-o_O-inlineStyles_1kc2paq"
class="button_vr44p2-o_O-shared_lwskrm-o_O-disabled_mqm918-o_O-default_ggcqzw-o_O-disabled_oj20kr-o_O-inlineStyles_1kc2paq"
role="button"
tabindex="-1"
type="button"
Expand Down Expand Up @@ -3317,7 +3317,7 @@ exports[`Interactive Graph interactive-graph widget question Should render predi
>
<button
aria-disabled="false"
class="button_vr44p2-o_O-shared_lwskrm-o_O-default_1rnqd7l-o_O-inlineStyles_16y2sco"
class="button_vr44p2-o_O-shared_lwskrm-o_O-default_1m2y2k0-o_O-inlineStyles_16y2sco"
id="perseus_mafs_remove_button"
role="button"
tabindex="-1"
Expand Down Expand Up @@ -3574,7 +3574,7 @@ exports[`Interactive Graph interactive-graph widget question Should render predi
>
<button
aria-disabled="true"
class="button_vr44p2-o_O-shared_lwskrm-o_O-disabled_mqm918-o_O-default_1rnqd7l-o_O-disabled_1ocn25h-o_O-inlineStyles_1kc2paq"
class="button_vr44p2-o_O-shared_lwskrm-o_O-disabled_mqm918-o_O-default_1m2y2k0-o_O-disabled_oj20kr-o_O-inlineStyles_1kc2paq"
id="perseus_mafs_remove_button"
role="button"
tabindex="-1"
Expand All @@ -3588,7 +3588,7 @@ exports[`Interactive Graph interactive-graph widget question Should render predi
</button>
<button
aria-disabled="true"
class="button_vr44p2-o_O-shared_lwskrm-o_O-disabled_mqm918-o_O-default_pxdq54-o_O-disabled_1ocn25h-o_O-inlineStyles_1kc2paq"
class="button_vr44p2-o_O-shared_lwskrm-o_O-disabled_mqm918-o_O-default_ggcqzw-o_O-disabled_oj20kr-o_O-inlineStyles_1kc2paq"
role="button"
tabindex="-1"
type="button"
Expand Down
Loading
Loading