@@ -172,6 +172,19 @@ describe("List Tests", () => {
172
172
assert . equal ( browser . $ ( '#lblResult' ) . getHTML ( false ) , "Laptop HP: 1" , "itemDelete event was fired for the right item" ) ;
173
173
} ) ;
174
174
175
+ it ( "mode: delete. DELETE key press - deletes item" , ( ) => {
176
+ browser . url ( `http://localhost:${ PORT } /test-resources/pages/List_test_page.html` ) ;
177
+ list . root . setProperty ( "mode" , "Delete" ) ;
178
+
179
+ const firstItem = list . getItem ( 0 ) ;
180
+ firstItem . click ( ) ;
181
+
182
+ assert . ok ( ! firstItem . getAttribute ( "selected" ) , "item is selected" ) ;
183
+
184
+ firstItem . keys ( "Delete" )
185
+ assert . equal ( browser . $ ( '#lblResult' ) . getHTML ( false ) , "Laptop HP: 1" , "itemDelete event was fired for the right item" ) ;
186
+ } ) ;
187
+
175
188
it ( "item size and classed, when an item has both text and description" , ( ) => {
176
189
const ITEM_WITH_DESCRIPTION_AND_TITLE_HEIGHT = 80 ;
177
190
const firstItem = $ ( "#listWithDesc ui5-li:first-child" ) ;
@@ -355,7 +368,7 @@ describe("List Tests", () => {
355
368
assert . strictEqual ( item3 . getProperty ( "focused" ) , true , "disabled item is skipped" ) ;
356
369
} ) ;
357
370
358
- it . only ( 'should focus next interactive element if TAB is pressed when focus is on "More" growing button' , ( ) => {
371
+ it ( 'should focus next interactive element if TAB is pressed when focus is on "More" growing button' , ( ) => {
359
372
const growingListButton = $ ( '#growingListButton' ) . shadow$ ( "div[load-more-inner]" ) ;
360
373
const nextInteractiveElement = $ ( '#nextInteractiveElement' ) ;
361
374
0 commit comments