feat: complete SSR CRM and refine auth UI
This commit is contained in:
@@ -263,6 +263,18 @@ test("auth form uses package schemas, disables native validation, and renders a
|
||||
expect(html).toContain('fullWidth="true"');
|
||||
});
|
||||
|
||||
test("password controls provide matching lock and visibility affordances", () => {
|
||||
const toggle = readFileSync(uiComponentPath("TogglePassword"), "utf8");
|
||||
const strong = readFileSync(uiComponentPath("StrongPassword"), "utf8");
|
||||
const button = readFileSync(uiComponentPath("Button"), "utf8");
|
||||
|
||||
expect(toggle).toContain("wrn-next__password-leading-icon");
|
||||
expect(strong).toContain("wrn-next__strong-password-leading-icon");
|
||||
expect(strong).toContain("wrn-next__strong-password-toggle");
|
||||
expect(strong).toContain("type=\"{revealed ? 'text' : 'password'}\"");
|
||||
expect(button).toContain("data-full-width=\"{fullWidth ? 'true' : 'false'}\"");
|
||||
});
|
||||
|
||||
test("footer supports typed entries, responsive columns, pre/post slots, and events", () => {
|
||||
const source = readFileSync(uiComponentPath("Footer"), "utf8");
|
||||
expect(source).toMatch(/<slot\s+name="pre-footer"\s*>/);
|
||||
|
||||
Reference in New Issue
Block a user