fix: complete model renderer states and ids
This commit is contained in:
parent
fede33e8a7
commit
c2fb20b066
11 changed files with 84 additions and 7 deletions
|
|
@ -70,6 +70,17 @@ describe("dashboard UI components", () => {
|
|||
expect(footer.body).toContain("href=\"https://example.test/status\"");
|
||||
});
|
||||
|
||||
test("renders stable model IDs on group and status containers", () => {
|
||||
const { body } = render(DashboardFrame, {
|
||||
props: {
|
||||
dashboard: dashboardPreviewFixtures.primary,
|
||||
},
|
||||
});
|
||||
|
||||
expect(body).toContain("data-model-id=\"queue-workers\"");
|
||||
expect(body).toContain("data-model-id=\"dashboard-status\"");
|
||||
});
|
||||
|
||||
test("does not render progress bars for non-percent metrics without explicit progress", () => {
|
||||
const withoutProgress = render(TelemetryCard, {
|
||||
props: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue