Skip to content

Commit

Permalink
test: Add recovery handler to fix screenshots (#1584)
Browse files Browse the repository at this point in the history
  • Loading branch information
Al-Dani authored Sep 26, 2023
1 parent d8b04de commit abdd30c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pages/autosuggest/permutations-async.page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ export default function () {
onChange={() => {
/*empty handler to suppress react controlled property warning*/
}}
onLoadItems={() => {
/* handler is required to render retry button */
}}
{...permutation}
/>
</div>
Expand Down
1 change: 1 addition & 0 deletions pages/multiselect/screenshot.page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export default function () {
finishedText="End of all results"
errorText="verylongtextwithoutspacesverylongtextwithoutspacesverylongtextwithoutspacesverylongtextwithoutspacesverylongtextwithoutspacesverylongtextwithoutspacesverylongtextwithoutspacesverylongtextwithoutspacesverylongtextwithoutspacesverylongtextwithoutspacesverylongtextwithoutspacesverylongtextwithoutspacesverylongtextwithoutspaces"
recoveryText="Retry"
onLoadItems={() => {}}
statusType={showError ? 'error' : 'finished'}
onChange={event => setSelected(event.detail.selectedOptions)}
i18nStrings={i18nStrings}
Expand Down

0 comments on commit abdd30c

Please sign in to comment.