Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

fix: use checkValidity() to force browser validation state update

LearningCircuitfe0aed1e9af1
diff --git a/tests/ui_tests/test_register_validation.js b/tests/ui_tests/test_register_validation.js
index ddd7c8539e..c0bac965f1 100644
--- a/tests/ui_tests/test_register_validation.js
+++ b/tests/ui_tests/test_register_validation.js
@@ -204,16 +204,16 @@ async function testRegisterValidation() {
await page.focus('input[name="username"]');
await page.keyboard.type('[email protected]', { delay: 50 });
- // Blur the field to trigger browser validation state update
- await page.evaluate(() => document.querySelector('input[name="username"]').blur());
- await new Promise(resolve => setTimeout(resolve, 100));
-
- validity = await page.evaluate(el => ({
- valid: el.validity.valid,
- patternMismatch: el.validity.patternMismatch,
- valueMissing: el.validity.valueMissing,
- tooShort: el.validity.tooShort
- }), usernameInput);
+ // Force validity check - call checkValidity() to update validity state
+ validity = await page.evaluate(el => {
+ el.checkValidity(); // This forces the browser to update validity state
+ return {
+ valid: el.validity.valid,
+ patternMismatch: el.validity.patternMismatch,
+ valueMissing: el.validity.valueMissing,
+ tooShort: el.validity.tooShort
+ };
+ }, usernameInput);
console.log(` Value: "[email protected]", Valid: ${validity.valid}, PatternMismatch: ${validity.patternMismatch}`);