From d68818f71b24c5f458fe1fcde2d8c48e3a90a32a Mon Sep 17 00:00:00 2001 From: Javier Pedemonte Date: Fri, 19 Jan 2024 16:58:50 -0600 Subject: [PATCH] test: japanese PDF is only a single page --- .../PdfViewerWithHighlight/PdfViewerWithHighlight.stories.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/discovery-react-components/src/components/DocumentPreview/components/PdfViewerWithHighlight/PdfViewerWithHighlight.stories.tsx b/packages/discovery-react-components/src/components/DocumentPreview/components/PdfViewerWithHighlight/PdfViewerWithHighlight.stories.tsx index 62e3b2cef..ad8fe31cc 100644 --- a/packages/discovery-react-components/src/components/DocumentPreview/components/PdfViewerWithHighlight/PdfViewerWithHighlight.stories.tsx +++ b/packages/discovery-react-components/src/components/DocumentPreview/components/PdfViewerWithHighlight/PdfViewerWithHighlight.stories.tsx @@ -371,7 +371,7 @@ export const _WithTextSelection = { export const WithPdfInJapanese = { render: () => { - const page = number(pageKnob.label, pageKnob.defaultValue, pageKnob.options); + const page = number(pageKnob.label, pageKnob.defaultValue, { ...pageKnob.options, max: 1 }); const zoom = radios(zoomKnob.label, zoomKnob.options, zoomKnob.defaultValue); const scale = parseFloat(zoom); const setLoadingAction = action('setLoading');