mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-04-08 03:00:28 -04:00
test(frontend): fix null-user dash assertion using getAllByText to handle multiple matches
This commit is contained in:
@@ -421,5 +421,9 @@ describe("PlatformCostContent", () => {
|
||||
);
|
||||
expect(screen.getByText("copilot:SDK")).toBeDefined();
|
||||
expect(screen.getByText("anthropic")).toBeDefined();
|
||||
// null email + null user_id renders as "-" in the User column; multiple
|
||||
// other cells (tokens, duration, session) also render "-", so use
|
||||
// getAllByText to avoid the single-match constraint.
|
||||
expect(screen.getAllByText("-").length).toBeGreaterThan(0);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user