Skip to content

Commit 84eb935

Browse files
committed
test: add virtual scroll text
1 parent ea44e07 commit 84eb935

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

pages/multiselect/custom-render-option.page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ export default function SelectPage() {
5252
title="Multiselect with custom item renderer"
5353
settings={
5454
<Button
55+
data-testid="toggle-virtual-scroll"
5556
onClick={() => {
5657
setVirtualScroll(prevValue => !prevValue);
5758
}}
@@ -62,11 +63,10 @@ export default function SelectPage() {
6263
screenshotArea={{
6364
style: {
6465
padding: 10,
65-
paddingBlockEnd: 550,
6666
},
6767
}}
6868
>
69-
<div style={{ inlineSize: '400px' }}>
69+
<div style={{ maxInlineSize: '400px', blockSize: '650px' }}>
7070
<Multiselect
7171
virtualScroll={virtualScroll}
7272
enableSelectAll={true}

pages/select/custom-render-option.page.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ export default function SelectPage() {
5656
title="Select with custom item renderer"
5757
settings={
5858
<Button
59+
data-testid="toggle-virtual-scroll"
5960
onClick={() => {
6061
setVirtualScroll(prevValue => !prevValue);
6162
}}
@@ -66,16 +67,15 @@ export default function SelectPage() {
6667
screenshotArea={{
6768
style: {
6869
padding: 10,
69-
paddingBlockEnd: 550,
7070
},
7171
}}
7272
>
73-
<div style={{ inlineSize: '400px' }}>
73+
<div style={{ maxInlineSize: '400px', blockSize: '650px' }}>
7474
<Select
7575
virtualScroll={virtualScroll}
7676
filteringType="auto"
7777
renderOption={renderOption}
78-
placeholder="Choose option"
78+
placeholder={'Choose option ' + (virtualScroll ? '(virtual)' : '')}
7979
selectedOption={selectedOption}
8080
onChange={({ detail }) => setSelectedOption(detail.selectedOption)}
8181
options={options}

0 commit comments

Comments
 (0)