I am writing a spec for a component that uses the ngx-bootstrap's tooltip attribute directive (TooltipDirective). I would like to call the open method of the tooltip to view the content. But when I try to access that directive, I get my component instead.
const tooltip = fixture.debugElement.query(By.directive(TooltipDirective))
.componentInstance;
When I console.log(tooltip) I get a reference to the component under test, not the expected tooltip directive. Is there any way to access the attribute directive?