fix: improve lead detail dialog hierarchy

This commit is contained in:
duanshuwen committed 2026-08-27 09:47:39 +08:00
1 parent 67edbe2077
commit 021045e285
3 files changed
+51 -13

No files matched your search

@@ -8,4 +8,15 @@ describe("LeadsPage initial loading", () => {
expect(source).toMatch(/onMounted\(load\)/);
});
it("keeps the grouped lead detail layout hooks", async () => {
const source = await readFile(fileURLToPath(new URL("./LeadsPage.vue", import.meta.url)), "utf8");
expect(source).toContain('class="lead-detail-card"');
expect(source).toContain('class="lead-detail-item"');
expect(source).toContain('class="lead-detail-section-title"');
expect(source).toContain('class="lead-detail-section lead-detail-note"');
expect(source.match(/class="lead-detail-item"/g)).toHaveLength(6);
expect(source).toContain("v-permission=\"'admin:leads:update'\"");
});
});