@@ -32,6 +32,7 @@ import type {
32
32
TextAreaDomRef ,
33
33
TimePickerDomRef ,
34
34
ToggleButtonDomRef ,
35
+ IconDomRef ,
35
36
} from '../..' ;
36
37
import {
37
38
AnalyticalTable ,
@@ -51,6 +52,7 @@ import {
51
52
DynamicDateRange ,
52
53
FileUploader ,
53
54
IndicationColor ,
55
+ Icon ,
54
56
Input ,
55
57
MessageViewButton ,
56
58
MultiComboBox ,
@@ -4103,19 +4105,29 @@ describe('AnalyticalTable', () => {
4103
4105
cy . realPress ( 'ArrowDown' ) ;
4104
4106
4105
4107
cy . realPress ( 'F2' ) ;
4106
- allRelevantInputCompontentsForF2 . forEach ( ( _ ) => {
4108
+ allRelevantInputCompontentsForF2 . forEach ( ( col ) => {
4109
+ cy . log ( col . Header ) ;
4110
+ if ( col . id === 'segmented-button' ) {
4111
+ // SegmentedButton has two tab stops
4112
+ cy . realPress ( 'Tab' ) ;
4113
+ }
4114
+ cy . realPress ( 'F2' ) ;
4115
+ cy . focused ( ) . should ( 'have.attr' , 'role' , 'gridcell' ) ;
4116
+ cy . realPress ( 'F2' ) ;
4107
4117
cy . realPress ( 'Tab' ) ;
4108
4118
} ) ;
4109
- // SegmentedButton has two tab stops
4110
- cy . realPress ( 'Tab' ) ;
4119
+
4111
4120
cy . focused ( ) . should ( 'have.text' , 'After' ) ;
4112
4121
4113
- cy . realPress ( 'F2' ) ;
4114
- allRelevantInputCompontentsForF2 . forEach ( ( _ ) => {
4122
+ cy . realPress ( [ 'Shift' , 'Tab' ] ) ;
4123
+ allRelevantInputCompontentsForF2 . forEach ( ( col ) => {
4124
+ if ( col . id === 'segmented-button' ) {
4125
+ // SegmentedButton has two tab stops
4126
+ cy . realPress ( [ 'Shift' , 'Tab' ] ) ;
4127
+ }
4115
4128
cy . realPress ( [ 'Shift' , 'Tab' ] ) ;
4116
4129
} ) ;
4117
4130
// SegmentedButton has two tab stops
4118
- cy . realPress ( [ 'Shift' , 'Tab' ] ) ;
4119
4131
cy . focused ( ) . should ( 'have.text' , 'Before' ) ;
4120
4132
} ) ;
4121
4133
@@ -6016,6 +6028,14 @@ const allRelevantInputCompontentsForF2 = [
6016
6028
interactiveElementName : 'FileUploader' ,
6017
6029
tagName : 'ui5-file-uploader' ,
6018
6030
} ,
6031
+ {
6032
+ Header : 'Icon' ,
6033
+ Cell : ( props : AnalyticalTableCellInstance ) => {
6034
+ const callbackRef = useF2CellEdit . useCallbackRef < IconDomRef > ( props ) ;
6035
+ return < Icon name = "employee" mode = "Interactive" ref = { callbackRef } /> ;
6036
+ } ,
6037
+ interactiveElementName : 'Icon' ,
6038
+ } ,
6019
6039
{
6020
6040
Header : 'Input' ,
6021
6041
id : 'input' ,
0 commit comments