fix(ui): style password validation errors and invalid borders
This commit is contained in:
1 parent
fe40cc56df
commit
b1b84eb41c
5 files changed
+18
-4
No files matched your search
@@ -1409,6 +1409,14 @@ test("password fields cancel native invalid popups and show inline errors", asyn
|
||||
expect(dom.querySelector("[data-error='password']")?.textContent).toContain(
|
||||
"Enter your password.",
|
||||
);
|
||||
expect(dom.querySelector(".wrn-next--invalid")).not.toBeNull();
|
||||
const source = readFileSync(uiComponentPath(component), "utf8");
|
||||
expect(source).toMatch(
|
||||
/\.wrn-next--(?:toggle|strong)-password \.wrn-next__validation\s*\{\s*color: var\(--wrn-color-danger, #ef4444\)/,
|
||||
);
|
||||
input.value = "ExamplePassword123!";
|
||||
input.dispatchEvent(new (dom.window as any).Event("input", { bubbles: true }));
|
||||
expect(dom.querySelector(".wrn-next--invalid")).toBeNull();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user