@@ -29,29 +29,49 @@ import { mouseenter, mouseleave } from '@vaadin/tooltip/test/helpers.js';
2929 { tagName : Button . is } ,
3030 { tagName : Checkbox . is } ,
3131 { tagName : CheckboxGroup . is } ,
32- { tagName : ComboBox . is , applyShouldNotShowCondition : ( comboBox ) => comboBox . click ( ) } ,
32+ {
33+ tagName : ComboBox . is ,
34+ position : 'top' ,
35+ applyShouldNotShowCondition : ( comboBox ) => comboBox . click ( ) ,
36+ } ,
3337 {
3438 tagName : CustomField . is ,
3539 children : '<vaadin-combo-box></vaadin-combo-box>' ,
3640 applyShouldNotShowCondition : ( field ) => field . inputs [ 0 ] . click ( ) ,
3741 } ,
38- { tagName : DatePicker . is , applyShouldNotShowCondition : ( datePicker ) => datePicker . click ( ) } ,
39- { tagName : DateTimePicker . is , applyShouldNotShowCondition : ( element ) => element . querySelector ( 'input' ) . click ( ) } ,
42+ {
43+ tagName : DatePicker . is ,
44+ position : 'top' ,
45+ applyShouldNotShowCondition : ( datePicker ) => datePicker . click ( ) ,
46+ } ,
47+ {
48+ tagName : DateTimePicker . is ,
49+ position : 'top' ,
50+ applyShouldNotShowCondition : ( element ) => element . querySelector ( 'input' ) . click ( ) ,
51+ } ,
4052 { tagName : Details . is , targetSelector : '[part="summary"]' , position : 'bottom-start' } ,
41- { tagName : EmailField . is } ,
53+ { tagName : EmailField . is , position : 'top' } ,
4254 { tagName : Icon . is } ,
43- { tagName : IntegerField . is } ,
55+ { tagName : IntegerField . is , position : 'top' } ,
4456 { tagName : ListBox . is } ,
4557 { tagName : MessageInput . is } ,
46- { tagName : MultiSelectComboBox . is , applyShouldNotShowCondition : ( comboBox ) => comboBox . click ( ) } ,
47- { tagName : NumberField . is } ,
48- { tagName : PasswordField . is } ,
58+ {
59+ tagName : MultiSelectComboBox . is ,
60+ position : 'top' ,
61+ applyShouldNotShowCondition : ( comboBox ) => comboBox . click ( ) ,
62+ } ,
63+ { tagName : NumberField . is , position : 'top' } ,
64+ { tagName : PasswordField . is , position : 'top' } ,
4965 { tagName : RadioGroup . is } ,
50- { tagName : Select . is } ,
66+ { tagName : Select . is , position : 'top' } ,
5167 { tagName : Tab . is } ,
52- { tagName : TextArea . is } ,
53- { tagName : TextField . is } ,
54- { tagName : TimePicker . is , applyShouldNotShowCondition : ( timePicker ) => timePicker . click ( ) } ,
68+ { tagName : TextArea . is , position : 'top' } ,
69+ { tagName : TextField . is , position : 'top' } ,
70+ {
71+ tagName : TimePicker . is ,
72+ position : 'top' ,
73+ applyShouldNotShowCondition : ( timePicker ) => timePicker . click ( ) ,
74+ } ,
5575] . forEach ( ( { tagName, targetSelector, position, applyShouldNotShowCondition, children = '' } ) => {
5676 describe ( `${ tagName } with a slotted tooltip` , ( ) => {
5777 let element , tooltip , tooltipOverlay ;
0 commit comments