eugenegujing commented on code in PR #9260:
URL: https://github.com/apache/texera/pull/9260#discussion_r4520481653
##########
frontend/src/app/dashboard/component/user/user-model/user-model-explorer/model-detail.component.spec.ts:
##########
@@ -997,7 +997,8 @@ describe("ModelDetailComponent", () => {
// The browser owns the toolbar controls; the page keeps the two flags and
feeds them back in.
component.isRightBarCollapsed = true;
fixture.detectChanges();
- expect(fixture.nativeElement.querySelector("nz-sider")).toBeNull();
+ // Hidden, not removed, so the uploader inside keeps any upload in flight.
+
expect(fixture.nativeElement.querySelector("nz-sider").hasAttribute("hidden")).toBe(true);
Review Comment:
The other three assertions use
`querySelector("nz-sider")?.hasAttribute("hidden")`, but this one has no `?.`.
If the sider is ever missing, this throws a TypeError instead of failing the
assertion. Could you make it consistent?
--
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]