Open
Description
Is this a regression?
- Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was
No response
Description
MatTooltipHarness.isOpen()
returns true
if any tooltip is open. Intuitively it should returns if the tooltip associated with that harness is open. The docs also sound like that's what it should do, because it uses the word "the" instead of "a":
Gets whether the tooltip is open.
Reproduction
Steps to reproduce:
- Have tooltips on 2 elements
- Open one of them
- Test
.isOpen()
on the harness for a different one
Here's a stackblitz: https://stackblitz.com/edit/harness-issue-84mcjr?file=src/app/button-harness-example.spec.ts
Expected Behavior
.isOpen()
would return true for the tooltip that is open, and false for the one that is not
Actual Behavior
.isOpen()
returns true for both
Environment
@angular-devkit/architect 0.1501.2
@angular-devkit/build-angular 15.1.2
@angular-devkit/core 15.0.5
@angular-devkit/schematics 15.0.5
@angular/cdk 15.0.3
@angular/cli 15.0.5
@angular/fire 7.5.0
@angular/material 15.0.3
@schematics/angular 15.0.5
rxjs 7.5.7
typescript 4.8.4