@davoodmehraban89 / Factor-easy-2 Mirror · read-only / commits / 18483f5
Fork 0

سامانه صدور فاکتور و حسابداری

Mirrored from https://github.com/davoodmehraban89/Factor-easy.git

Synced Dec 3, 17:00 UTC

fix: avoid global aria status collision in office smoke tests

Davood Mehraban committed Oct 11, 2026 at 13:34 UTC 18483f5fcca137d54081422f64beebd52b3ea8d9
2 files changed +2 -1
index.html
+1 -1
@@ -237,7 +237,7 @@ body{background:#f6f9fc}
237 <button class="btn btn-secondary" onclick="startEmailOtp(false,false)">ورود با کد ایمیل</button>
238 </div>
239 <button type="button" id="auth-connectivity-check" class="btn btn-secondary" style="width:100%;margin-top:10px" onclick="checkAuthConnectivity()">بررسی اتصال به سرور ورود</button>
240 - <p id="auth-connectivity-result" role="status" aria-live="polite" style="font-size:12px;line-height:1.9;margin-top:8px;overflow-wrap:anywhere"></p>
240 + <p id="auth-connectivity-result" aria-live="polite" style="font-size:12px;line-height:1.9;margin-top:8px;overflow-wrap:anywhere"></p>
241 <button class="btn auth-signup" onclick="startEmailOtp(false,true)">ثبت‌نام با کد ایمیل</button>
242 <p class="auth-note">ورود با کد ایمیل برای حساب موجود است. ایجاد حساب جدید فقط از مسیر «ثبت‌نام با کد ایمیل» انجام می‌شود.</p>
243 </div>
scripts/login-connectivity-check.mjs
+1
@@ -5,6 +5,7 @@ const core=fs.readFileSync('js/core.js','utf8');
5 const diagnostic=fs.readFileSync('js/login-connectivity.js','utf8');
6 assert(html.includes('id="auth-connectivity-check"'),'Missing diagnostic action');
7 assert(html.includes('id="auth-connectivity-result"'),'Missing accessible result');
8 +assert(html.includes('id="auth-connectivity-result" aria-live="polite"'),'Diagnostic must announce updates without adding a conflicting global role=status');
9 assert(html.includes('js/login-connectivity.js?v=20261011-login-triage-v1'),'Missing versioned script');
10 assert(html.includes('js/core.js?v=20261011-login-triage-v1'),'Core.js cache version not bumped');
11 assert(core.includes('isAuthNetworkError(err)'),'Network error diagnostic not wired');