@@ -297,7 +297,7 @@ describe('MDCTooltip', () => {
297
297
describe ( 'default interactive rich tooltip tests' , ( ) => {
298
298
beforeEach ( ( ) => {
299
299
fixture = getFixture ( `<div>
300
- <button aria-describedby ="tt0" aria-haspopup="dialog" aria-expanded="false">
300
+ <button data-tooltip-id ="tt0" aria-haspopup="dialog" aria-expanded="false">
301
301
anchor
302
302
</button>
303
303
<div id="tt0" class="mdc-tooltip mdc-tooltip--rich" aria-hidden="true" role="dialog">
@@ -329,7 +329,7 @@ describe('MDCTooltip', () => {
329
329
it ( 'sets aria-expanded on anchor to true when showing rich tooltip' , ( ) => {
330
330
const tooltipElem = fixture . querySelector < HTMLElement > ( '#tt0' ) ! ;
331
331
const anchorElem =
332
- fixture . querySelector < HTMLElement > ( '[aria-describedby ]' ) ! ;
332
+ fixture . querySelector < HTMLElement > ( '[data-tooltip-id ]' ) ! ;
333
333
MDCTooltip . attachTo ( tooltipElem ) ;
334
334
335
335
emitEvent ( anchorElem , 'mouseenter' ) ;
@@ -342,7 +342,7 @@ describe('MDCTooltip', () => {
342
342
( ) => {
343
343
const tooltipElem = fixture . querySelector < HTMLElement > ( '#tt0' ) ! ;
344
344
const anchorElem =
345
- fixture . querySelector < HTMLElement > ( '[aria-describedby ]' ) ! ;
345
+ fixture . querySelector < HTMLElement > ( '[data-tooltip-id ]' ) ! ;
346
346
MDCTooltip . attachTo ( tooltipElem ) ;
347
347
348
348
emitEvent ( anchorElem , 'mouseenter' ) ;
@@ -357,7 +357,7 @@ describe('MDCTooltip', () => {
357
357
( ) => {
358
358
const tooltipElem = fixture . querySelector < HTMLElement > ( '#tt0' ) ! ;
359
359
const anchorElem =
360
- fixture . querySelector < HTMLElement > ( '[aria-describedby ]' ) ! ;
360
+ fixture . querySelector < HTMLElement > ( '[data-tooltip-id ]' ) ! ;
361
361
MDCTooltip . attachTo ( tooltipElem ) ;
362
362
363
363
emitEvent ( anchorElem , 'mouseenter' ) ;
@@ -371,7 +371,7 @@ describe('MDCTooltip', () => {
371
371
it ( 'aria-expanded becomes true on anchor when anchor is focused' , ( ) => {
372
372
const tooltipElem = fixture . querySelector < HTMLElement > ( '#tt0' ) ! ;
373
373
const anchorElem =
374
- fixture . querySelector < HTMLElement > ( '[aria-describedby ]' ) ! ;
374
+ fixture . querySelector < HTMLElement > ( '[data-tooltip-id ]' ) ! ;
375
375
MDCTooltip . attachTo ( tooltipElem ) ;
376
376
377
377
emitEvent ( anchorElem , 'focus' ) ;
@@ -384,7 +384,7 @@ describe('MDCTooltip', () => {
384
384
( ) => {
385
385
const tooltipElem = fixture . querySelector < HTMLElement > ( '#tt0' ) ! ;
386
386
const anchorElem =
387
- fixture . querySelector < HTMLElement > ( '[aria-describedby ]' ) ! ;
387
+ fixture . querySelector < HTMLElement > ( '[data-tooltip-id ]' ) ! ;
388
388
MDCTooltip . attachTo ( tooltipElem ) ;
389
389
390
390
emitEvent ( anchorElem , 'focus' ) ;
@@ -400,7 +400,7 @@ describe('MDCTooltip', () => {
400
400
( ) => {
401
401
const tooltipElem = fixture . querySelector < HTMLElement > ( '#tt0' ) ! ;
402
402
const anchorElem =
403
- fixture . querySelector < HTMLElement > ( '[aria-describedby ]' ) ! ;
403
+ fixture . querySelector < HTMLElement > ( '[data-tooltip-id ]' ) ! ;
404
404
const tooltipActionButton =
405
405
fixture . querySelector < HTMLElement > ( '.mdc-tooltip__action' ) ! ;
406
406
MDCTooltip . attachTo ( tooltipElem ) ;
@@ -423,7 +423,7 @@ describe('MDCTooltip', () => {
423
423
}
424
424
const tooltipElem = fixture . querySelector < HTMLElement > ( '#tt0' ) ! ;
425
425
const anchorElem =
426
- fixture . querySelector < HTMLElement > ( '[aria-describedby ]' ) ! ;
426
+ fixture . querySelector < HTMLElement > ( '[data-tooltip-id ]' ) ! ;
427
427
MDCTooltip . attachTo ( tooltipElem ) ;
428
428
429
429
emitEvent ( anchorElem , 'focus' ) ;
@@ -444,7 +444,7 @@ describe('MDCTooltip', () => {
444
444
}
445
445
const tooltipElem = fixture . querySelector < HTMLElement > ( '#tt0' ) ! ;
446
446
const anchorElem =
447
- fixture . querySelector < HTMLElement > ( '[aria-describedby ]' ) ! ;
447
+ fixture . querySelector < HTMLElement > ( '[data-tooltip-id ]' ) ! ;
448
448
MDCTooltip . attachTo ( tooltipElem ) ;
449
449
450
450
emitEvent ( anchorElem , 'focus' ) ;
@@ -465,7 +465,7 @@ describe('MDCTooltip', () => {
465
465
}
466
466
const tooltipElem = fixture . querySelector < HTMLElement > ( '#tt0' ) ! ;
467
467
const anchorElem =
468
- fixture . querySelector < HTMLElement > ( '[aria-describedby ]' ) ! ;
468
+ fixture . querySelector < HTMLElement > ( '[data-tooltip-id ]' ) ! ;
469
469
MDCTooltip . attachTo ( tooltipElem ) ;
470
470
471
471
emitEvent ( anchorElem , 'focus' ) ;
@@ -485,7 +485,7 @@ describe('MDCTooltip', () => {
485
485
}
486
486
const tooltipElem = fixture . querySelector < HTMLElement > ( '#tt0' ) ! ;
487
487
const anchorElem =
488
- fixture . querySelector < HTMLElement > ( '[aria-describedby ]' ) ! ;
488
+ fixture . querySelector < HTMLElement > ( '[data-tooltip-id ]' ) ! ;
489
489
MDCTooltip . attachTo ( tooltipElem ) ;
490
490
491
491
emitEvent ( anchorElem , 'focus' ) ;
@@ -508,7 +508,7 @@ describe('MDCTooltip', () => {
508
508
const tooltipContent =
509
509
fixture . querySelector < HTMLElement > ( '.mdc-tooltip__content' ) ! ;
510
510
const anchorElem =
511
- fixture . querySelector < HTMLElement > ( '[aria-describedby ]' ) ! ;
511
+ fixture . querySelector < HTMLElement > ( '[data-tooltip-id ]' ) ! ;
512
512
MDCTooltip . attachTo ( tooltipElem ) ;
513
513
514
514
emitEvent ( anchorElem , 'focus' ) ;
0 commit comments