Skip to content

Commit ec91af2

Browse files
committed
chore(*): Add missed test scenario
1 parent 7787e61 commit ec91af2

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

projects/igniteui-angular/src/lib/grids/grid/column-selection.spec.ts

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -919,12 +919,19 @@ describe('IgxGrid - Column Selection #grid', () => {
919919
GridSelectionFunctions.verifyColumnGroupSelected(fix, personDetails);
920920
GridSelectionFunctions.verifyColumnsSelected([companyName, contactTitle, contactName]);
921921

922-
// Click on a column in the group
923-
GridFunctions.clickColumnHeaderUI('CompanyName', fix);
922+
// Click on a column group in the group
923+
GridFunctions.clickColumnGroupHeaderUI('Person Details', fix);
924924
GridSelectionFunctions.verifyColumnGroupSelected(fix, genInfHeader, false);
925+
GridSelectionFunctions.verifyColumnGroupSelected(fix, personDetails, true);
926+
GridSelectionFunctions.verifyColumnsSelected([contactTitle, contactName]);
927+
GridSelectionFunctions.verifyColumnSelected(companyName, false);
928+
929+
// Click on a column in the group
930+
GridFunctions.clickColumnHeaderUI('ContactName', fix);
925931
GridSelectionFunctions.verifyColumnGroupSelected(fix, personDetails, false);
926-
GridSelectionFunctions.verifyColumnsSelected([contactTitle, contactName], false);
927-
GridSelectionFunctions.verifyColumnSelected(companyName);
932+
GridSelectionFunctions.verifyColumnSelected(contactTitle, false);
933+
GridSelectionFunctions.verifyColumnSelected(contactName);
934+
928935
});
929936
});
930937

0 commit comments

Comments
 (0)