@@ -371,6 +371,36 @@ describe("Table general interaction", () => {
371
371
assert . strictEqual ( await selectionChangeCount . getProperty ( "value" ) , "5" , "Enter key over an already selected row should trigger selection-change event" ) ;
372
372
} ) ;
373
373
374
+ it ( "test selectAll functionallity in MultiSelect mode" , async ( ) => {
375
+ await browser . url ( "http://localhost:8080/test-resources/pages/TableSelection.html" ) ;
376
+ const firstRow = await browser . $ ( "#firstRowMultiSelect" ) ;
377
+ const secondRow = await browser . $ ( "#secondRowMultiSelect" ) ;
378
+ const thirdRow = await browser . $ ( "#thirdRowMultiSelect" ) ;
379
+ const forthRow = await browser . $ ( "#forthRowMultiSelect" ) ;
380
+ const table = await browser . $ ( "#multi" ) ;
381
+ const selectAllCheckBox = await table . shadow$ ( "thead ui5-checkbox" ) ;
382
+
383
+ // act
384
+ await firstRow . setProperty ( "selected" , true ) ;
385
+ await secondRow . setProperty ( "selected" , true ) ;
386
+ await thirdRow . setProperty ( "selected" , true ) ;
387
+ await forthRow . setProperty ( "selected" , true ) ;
388
+
389
+ // assert
390
+ assert . ok ( await firstRow . getAttribute ( "selected" ) , "The first row is selected" ) ;
391
+ assert . ok ( await secondRow . getAttribute ( "selected" ) , "The second row is selected" ) ;
392
+ assert . ok ( await thirdRow . getAttribute ( "selected" ) , "The third row is selected" ) ;
393
+ assert . ok ( await forthRow . getAttribute ( "selected" ) , "The forth row is selected" ) ;
394
+ assert . ok ( await selectAllCheckBox . getProperty ( "checked" ) , "Select all checkbox is checked" ) ;
395
+
396
+ // act
397
+ await forthRow . setProperty ( "selected" , false ) ;
398
+
399
+ // assert
400
+ assert . notOk ( await forthRow . getAttribute ( "selected" ) , "The forth row is not selected" ) ;
401
+ assert . notOk ( await selectAllCheckBox . getProperty ( "checked" ) , "Select all checkbox is not checked" ) ;
402
+ } ) ;
403
+
374
404
it ( "test mouse and keyboard interaction over Active/Inactive row in Default mode" , async ( ) => {
375
405
const table = await browser . $ ( "#default" ) ;
376
406
const firstRow = await browser . $ ( "#firstRowDefaultMode" ) ;
0 commit comments