From abdd30c13516aea4a30a1ccac225db92981d1df2 Mon Sep 17 00:00:00 2001 From: Aleksandra Danilina <29692746+Al-Dani@users.noreply.github.com> Date: Tue, 26 Sep 2023 19:51:38 +0200 Subject: [PATCH] test: Add recovery handler to fix screenshots (#1584) --- pages/autosuggest/permutations-async.page.tsx | 3 +++ pages/multiselect/screenshot.page.tsx | 1 + 2 files changed, 4 insertions(+) diff --git a/pages/autosuggest/permutations-async.page.tsx b/pages/autosuggest/permutations-async.page.tsx index f3b4dda07f..ef00712f51 100644 --- a/pages/autosuggest/permutations-async.page.tsx +++ b/pages/autosuggest/permutations-async.page.tsx @@ -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} /> diff --git a/pages/multiselect/screenshot.page.tsx b/pages/multiselect/screenshot.page.tsx index c477370ca2..66b2207482 100644 --- a/pages/multiselect/screenshot.page.tsx +++ b/pages/multiselect/screenshot.page.tsx @@ -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}