@@ -16,7 +16,7 @@ describe('tree view', () => {
1616
1717 // #region helpers
1818 function getTreeWrapper ( ) : HTMLElement | null {
19- return document . querySelector ( '.sky-angular-tree-wrapper ' ) ;
19+ return document . querySelector ( '.sky-angular-tree-root ' ) ;
2020 }
2121
2222 function getToolbar ( ) : HTMLElement {
@@ -62,7 +62,7 @@ describe('tree view', () => {
6262 }
6363
6464 function getNodeContentWrappers ( ) : NodeListOf < HTMLElement > {
65- return document . querySelectorAll ( '.node-content- wrapper' ) ;
65+ return document . querySelectorAll ( '.node-wrapper' ) ;
6666 }
6767
6868 function getNodeContents ( ) : NodeListOf < HTMLElement > {
@@ -1206,7 +1206,7 @@ describe('tree view', () => {
12061206
12071207 it ( 'should have role="treeitem" for each content wrapper' , ( ) => {
12081208 fixture . detectChanges ( ) ;
1209- const nodes = document . querySelectorAll ( '.node-content- wrapper' ) ;
1209+ const nodes = document . querySelectorAll ( '.node-wrapper' ) ;
12101210
12111211 const nodeList : Array < Element > = Array . prototype . slice . call ( nodes ) ;
12121212 nodeList . forEach ( ( node ) => {
@@ -1228,7 +1228,7 @@ describe('tree view', () => {
12281228 it ( 'should have proper aria-expanded attributes for elements that contains children' , ( ) => {
12291229 fixture . detectChanges ( ) ;
12301230 const buttons = getToggleChildrenButtons ( ) ;
1231- const nodes = document . querySelectorAll ( '.node-content- wrapper' ) ;
1231+ const nodes = document . querySelectorAll ( '.node-wrapper' ) ;
12321232
12331233 expect ( nodes [ 0 ] . getAttribute ( 'aria-expanded' ) ) . toEqual ( 'true' ) ;
12341234 expect ( nodes [ 1 ] . getAttribute ( 'aria-expanded' ) ) . toBeNull ( ) ;
@@ -1246,7 +1246,7 @@ describe('tree view', () => {
12461246
12471247 it ( 'should set aria-current to true for the active node and undefined for all other nodes' , ( ) => {
12481248 fixture . detectChanges ( ) ;
1249- const nodes = document . querySelectorAll ( '.node-content- wrapper' ) ;
1249+ const nodes = document . querySelectorAll ( '.node-wrapper' ) ;
12501250
12511251 expect ( nodes [ 0 ] . getAttribute ( 'aria-current' ) ) . toBeNull ( ) ;
12521252 expect ( nodes [ 1 ] . getAttribute ( 'aria-current' ) ) . toBeNull ( ) ;
@@ -1289,7 +1289,7 @@ describe('tree view', () => {
12891289 it ( 'should set aria-selected to true for the selected node and undefined for all other nodes when in single-select mode' , ( ) => {
12901290 setupSingleSelectMode ( ) ;
12911291 fixture . detectChanges ( ) ;
1292- const nodes = document . querySelectorAll ( '.node-content- wrapper' ) ;
1292+ const nodes = document . querySelectorAll ( '.node-wrapper' ) ;
12931293
12941294 expect ( nodes [ 0 ] . getAttribute ( 'aria-selected' ) ) . toBeNull ( ) ;
12951295 expect ( nodes [ 1 ] . getAttribute ( 'aria-selected' ) ) . toBeNull ( ) ;
@@ -1308,7 +1308,7 @@ describe('tree view', () => {
13081308 it ( 'should not have aria-selected attributes on parent nodes when in leaf-select-only mode' , ( ) => {
13091309 setupLeafSelectOnlyMode ( ) ;
13101310 fixture . detectChanges ( ) ;
1311- const nodes = document . querySelectorAll ( '.node-content- wrapper' ) ;
1311+ const nodes = document . querySelectorAll ( '.node-wrapper' ) ;
13121312
13131313 expect ( nodes [ 0 ] . getAttribute ( 'aria-selected' ) ) . toBeNull ( ) ;
13141314 expect ( nodes [ 1 ] . getAttribute ( 'aria-selected' ) ) . toEqual ( 'false' ) ;
@@ -1327,7 +1327,7 @@ describe('tree view', () => {
13271327 it ( 'should set aria-selected to true for the selected node and undefined for all other nodes when in multi-select mode' , ( ) => {
13281328 setupNonCascadingMode ( ) ;
13291329 fixture . detectChanges ( ) ;
1330- const nodes = document . querySelectorAll ( '.node-content- wrapper' ) ;
1330+ const nodes = document . querySelectorAll ( '.node-wrapper' ) ;
13311331
13321332 expect ( nodes [ 0 ] . getAttribute ( 'aria-selected' ) ) . toEqual ( 'false' ) ;
13331333 expect ( nodes [ 1 ] . getAttribute ( 'aria-selected' ) ) . toEqual ( 'false' ) ;
@@ -1347,7 +1347,7 @@ describe('tree view', () => {
13471347 it ( 'should set aria-selected to true for the selected node and undefined for all other nodes when in multi-select mode' , ( ) => {
13481348 setupCascadingMode ( ) ;
13491349 fixture . detectChanges ( ) ;
1350- const nodes = document . querySelectorAll ( '.node-content- wrapper' ) ;
1350+ const nodes = document . querySelectorAll ( '.node-wrapper' ) ;
13511351
13521352 expect ( nodes [ 0 ] . getAttribute ( 'aria-selected' ) ) . toEqual ( 'false' ) ;
13531353 expect ( nodes [ 1 ] . getAttribute ( 'aria-selected' ) ) . toEqual ( 'false' ) ;
@@ -1363,20 +1363,6 @@ describe('tree view', () => {
13631363 expect ( nodes [ 4 ] . getAttribute ( 'aria-selected' ) ) . toEqual ( 'true' ) ;
13641364 } ) ;
13651365
1366- it ( 'should set aria-owns for groups under child nodes' , async ( ) => {
1367- setupCascadingMode ( ) ;
1368- fixture . detectChanges ( ) ;
1369- await fixture . whenStable ( ) ;
1370- const parentNodes = getNodeContentWrappers ( ) ;
1371- parentNodes . forEach ( ( node ) => {
1372- if ( node . getAttribute ( 'aria-expanded' ) === null ) {
1373- expect ( node . getAttribute ( 'aria-owns' ) ) . toBeNull ( ) ;
1374- } else {
1375- expect ( node . getAttribute ( 'aria-owns' ) ) . toBeDefined ( ) ;
1376- }
1377- } ) ;
1378- } ) ;
1379-
13801366 it ( 'should pass accessibility in basic setup' , async ( ) => {
13811367 fixture . detectChanges ( ) ;
13821368 await fixture . whenStable ( ) ;
0 commit comments