zyratlo commented on code in PR #8963:
URL: https://github.com/apache/texera/pull/8963#discussion_r4557215135
##########
frontend/src/app/workspace/component/notebook-import-modal/notebook-import-modal.component.spec.ts:
##########
@@ -627,15 +627,21 @@ describe("NotebookImportModalComponent", () => {
});
});
+ function tooltipOn(text: string) {
+ return fixture.debugElement
+ .queryAll(By.directive(NzTooltipDirective))
+ .find(element => element.nativeElement.textContent.trim() === text)!
+ .injector.get(NzTooltipDirective).title;
Review Comment:
Fixed in
[dfef53e](https://github.com/apache/texera/pull/8963/commits/dfef53ea13e5e2b76d29b73ae17bbd3c90ff682b).
The helper now throws an error naming the text it looked for when no tooltip
host matches, instead of failing on a non-null assertion. It still matches by
visible text, which is how the existing option helper in this spec finds
elements, so the template gets no test-only attribute.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]