File tree Expand file tree Collapse file tree 3 files changed +12
-6
lines changed
components/dash-core-components/src
tests/integration/renderer Expand file tree Collapse file tree 3 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 1
1
import React , { useMemo } from 'react' ;
2
- import { append , includes , without } from 'ramda' ;
3
2
import { ChecklistProps , PersistedProps , PersistenceTypes } from '../types' ;
4
3
import './css/checklist.css' ;
5
4
6
5
import { sanitizeOptions } from '../utils/optionTypes' ;
7
6
import LoadingElement from '../utils/_LoadingElement' ;
8
- import { Option , OptionsList } from '../utils/optionRendering' ;
7
+ import { OptionsList } from '../utils/optionRendering' ;
9
8
10
9
/**
11
10
* Checklist is a component that encapsulates several checkboxes.
Original file line number Diff line number Diff line change @@ -84,7 +84,6 @@ export const Option: React.FC<OptionProps> = ({
84
84
role = "option"
85
85
aria-selected = { isSelected }
86
86
style = { optionStyle }
87
- title = { option . title }
88
87
>
89
88
< input
90
89
type = { inputType }
@@ -100,7 +99,11 @@ export const Option: React.FC<OptionProps> = ({
100
99
className = { inputClassNames . join ( ' ' ) }
101
100
style = { inputStyle }
102
101
/>
103
- < span className = { labelClassNames . join ( ' ' ) } style = { labelStyle } >
102
+ < span
103
+ className = { labelClassNames . join ( ' ' ) }
104
+ style = { labelStyle }
105
+ title = { option . title }
106
+ >
104
107
< OptionLabel { ...option } index = { index } />
105
108
</ span >
106
109
</ label >
Original file line number Diff line number Diff line change @@ -358,9 +358,13 @@ def demo(n_clicks):
358
358
359
359
dash_duo .wait_for_element ("#add-option" ).click ()
360
360
for i in range (1 , n + 2 ):
361
- dash_duo .wait_for_text_to_equal (f"#options label:nth-child({ i } ) span" , "" )
361
+ dash_duo .wait_for_text_to_equal (
362
+ f"#options label:nth-child({ i } ) span.label-result" , ""
363
+ )
362
364
dash_duo .wait_for_element (f"#options label:nth-child({ i } ) button" ).click ()
363
- dash_duo .wait_for_text_to_equal (f"#options label:nth-child({ i } ) span" , "1" )
365
+ dash_duo .wait_for_text_to_equal (
366
+ f"#options label:nth-child({ i } ) span.label-result" , "1"
367
+ )
364
368
365
369
366
370
@flaky (max_runs = 3 )
You can’t perform that action at this time.
0 commit comments