Treasury & Bank Transfer Management System — سامانه مدیریت خزانه‌داری و حواله‌های بانکی

test(gui): model reliable hydrated integration page readiness

davoodmehraban89 committed Oct 16, 2026 at 22:49 UTC 17f000a481a447ccb59b4c2aa197291ea0cca281
1 file changed +10
qa/windows/gui-readiness.mjs new
+10
@@ -0,0 +1,10 @@
1 +/** Wait for the hydrated editor, not just a changed URL, before GUI assertions. */
2 +export function isIntegrationsEditorReady(page) {
3 + if (!page || page.editor !== true || page.copy !== true) return false;
4 + try {
5 + const url = new URL(page.href);
6 + return url.origin === 'http://127.0.0.1:3210' && url.pathname === '/integrations';
7 + } catch {
8 + return false;
9 + }
10 +}