diff --git a/docs/ui-validation/browse_browser.py b/docs/ui-validation/browse_browser.py new file mode 100644 index 00000000..67324250 --- /dev/null +++ b/docs/ui-validation/browse_browser.py @@ -0,0 +1,53 @@ +"""Actual BrowsePage/real projection/index; only cached synthetic metadata and fake redacted reads.""" +import json,sys +from pathlib import Path +from playwright.sync_api import sync_playwright +ROOT=Path(__file__).resolve().parent +sys.path.insert(0,'/Users/dohertj2/.codex/worktrees/scada-ui-consistency/scadaproj/components/ui-theme/validation/theme-1.0.0/canary') +from browser_zoom import zoom_browser,set_browser_zoom +BASE=json.load(open('/tmp/mx-ui-browse-state.json'))['origin'];OUT=ROOT/'evidence/browse-confirmation';OUT.mkdir(exist_ok=True) +long='Pump01.'+'x'*200 +results=[];errors=[] +def flow(page,touch=False,capture=None): + page.goto(BASE+'/browse-fixture');page.wait_for_selector('html[data-mx-ready="true"]');page.evaluate('document.fonts.ready') + page.get_by_role('button',name='Expand SyntheticPlant',exact=True).tap() if touch else page.get_by_role('button',name='Expand SyntheticPlant',exact=True).press('Enter') + page.get_by_role('button',name='Expand Pump01',exact=True).tap() if touch else page.get_by_role('button',name='Expand Pump01',exact=True).press('Space') + watch=page.get_by_role('button',name='Watch Pump01.PV',exact=True);watch.tap() if touch else watch.press('Space') + page.wait_for_function("document.querySelectorAll('.sub-table tbody tr').length===1") + watch.tap() if touch else watch.press('Space');assert page.locator('.sub-table tbody tr').count()==1 + page.get_by_role('button',name='Watch '+long,exact=True).tap() if touch else page.get_by_role('button',name='Watch '+long,exact=True).press('Enter') + page.wait_for_function("document.querySelectorAll('.sub-table tbody tr').length===2") + assert long in page.locator('.sub-table').inner_text() + targets=page.locator('.tree-node-toggle,.tree-watch,.sub-actions-col button').evaluate_all('(es)=>es.map(e=>({name:e.getAttribute("aria-label")||e.textContent.trim(),width:e.getBoundingClientRect().width,height:e.getBoundingClientRect().height}))') + if capture:page.screenshot(path=str(OUT/f'expanded-{capture}.png'),full_page=False) + region=page.get_by_role('region',name='Watched attribute values',exact=True) + region.evaluate('(e)=>e.scrollLeft=0');region.focus();page.keyboard.press('Tab') + page.wait_for_function("document.querySelector('.sub-table').closest('[role=region]').scrollLeft>0") + assert page.get_by_role('button',name='Remove Pump01.PV',exact=True).evaluate('(e)=>e===document.activeElement') + search=page.get_by_role('searchbox',name='Filter Galaxy attributes');search.fill('PV') + page.get_by_test_id('browse-search-status').filter(has_text='2 matching attributes.').wait_for() + page.get_by_role('button',name='Watch Pump01.PV',exact=True).tap() if touch else page.get_by_role('button',name='Watch Pump01.PV',exact=True).press('Space');assert page.locator('.sub-table tbody tr').count()==2 + search.fill('no-such-fixture');page.get_by_text('No attributes match',exact=False).wait_for() + page.get_by_role('button',name='Clear search',exact=True).tap() if touch else page.get_by_role('button',name='Clear search',exact=True).click() + page.wait_for_function("document.activeElement.id==='browse-search'") + assert page.locator('.sub-table tbody tr').count()==2 + return {'viewport':page.evaluate('innerWidth'),'scroll':page.evaluate('document.documentElement.scrollWidth'),'coarse':page.evaluate("matchMedia('(pointer:coarse)').matches"),'targets':targets,'namedScrollRegions':page.get_by_role('region').count(),'workflow':['keyboardExpand','spaceWatch','repeatedWatchNoDuplicate','fullLongPathPreserved','searchWatchSameSubscription','noMatchClearFocus','subscriptionsRetained','namedScrollerTabReachesActions']} +with sync_playwright() as p: + with zoom_browser(p) as (ctx,worker): + page=ctx.new_page();page.on('pageerror',lambda e:errors.append(str(e))) + for width,zoom in [(1440,1),(1024,1),(390,1),(1440,2)]: + page.set_viewport_size({'width':width,'height':900});page.goto(BASE+'/browse-fixture');set_browser_zoom(worker,page,zoom) + result=flow(page,capture=f'{width}-zoom{zoom}');result['zoom']=zoom;result['dpr']=page.evaluate('devicePixelRatio');results.append(result) + page.screenshot(path=str(OUT/f'browse-{width}-zoom{zoom}.png'),full_page=False) + set_browser_zoom(worker,page,1) + browser=p.chromium.launch(channel='chromium',headless=True) + page=browser.new_page(viewport={'width':390,'height':844},is_mobile=True,has_touch=True) + page.on('pageerror',lambda e:errors.append(str(e))) + page.goto(BASE+'/browse-fixture');cdp=page.context.new_cdp_session(page);cdp.send('Emulation.setTouchEmulationEnabled',{'enabled':True,'maxTouchPoints':1}) + assert page.evaluate("matchMedia('(pointer:coarse)').matches && navigator.maxTouchPoints===1") + result=flow(page,touch=True,capture='coarse390');results.append(result) + page.screenshot(path=str(OUT/'browse-coarse390.png'),full_page=False);browser.close() +assert all(r['scroll']<=r['viewport'] for r in results) +assert all(min(t['width'],t['height'])>=44 for r in results if r['coarse'] for t in r['targets']) +(OUT/'results.json').write_text(json.dumps({'cases':results,'errors':errors},indent=2)) +print(json.dumps({'cases':len(results),'overflow':[(r['viewport'],r['scroll']) for r in results if r['scroll']>r['viewport']],'coarseBelow44':[t for r in results if r['coarse'] for t in r['targets'] if min(t['width'],t['height'])<44],'errors':errors},indent=2)) diff --git a/docs/ui-validation/evidence/browse-confirmation.log b/docs/ui-validation/evidence/browse-confirmation.log new file mode 100644 index 00000000..9f64d00b --- /dev/null +++ b/docs/ui-validation/evidence/browse-confirmation.log @@ -0,0 +1,6 @@ +{ + "cases": 5, + "overflow": [], + "coarseBelow44": [], + "errors": [] +} diff --git a/docs/ui-validation/evidence/browse-confirmation/browse-1024-zoom1.png b/docs/ui-validation/evidence/browse-confirmation/browse-1024-zoom1.png new file mode 100644 index 00000000..55792346 Binary files /dev/null and b/docs/ui-validation/evidence/browse-confirmation/browse-1024-zoom1.png differ diff --git a/docs/ui-validation/evidence/browse-confirmation/browse-1440-zoom1.png b/docs/ui-validation/evidence/browse-confirmation/browse-1440-zoom1.png new file mode 100644 index 00000000..9aec519b Binary files /dev/null and b/docs/ui-validation/evidence/browse-confirmation/browse-1440-zoom1.png differ diff --git a/docs/ui-validation/evidence/browse-confirmation/browse-1440-zoom2.png b/docs/ui-validation/evidence/browse-confirmation/browse-1440-zoom2.png new file mode 100644 index 00000000..2e05f75f Binary files /dev/null and b/docs/ui-validation/evidence/browse-confirmation/browse-1440-zoom2.png differ diff --git a/docs/ui-validation/evidence/browse-confirmation/browse-390-zoom1.png b/docs/ui-validation/evidence/browse-confirmation/browse-390-zoom1.png new file mode 100644 index 00000000..a01c36ba Binary files /dev/null and b/docs/ui-validation/evidence/browse-confirmation/browse-390-zoom1.png differ diff --git a/docs/ui-validation/evidence/browse-confirmation/browse-coarse390.png b/docs/ui-validation/evidence/browse-confirmation/browse-coarse390.png new file mode 100644 index 00000000..9b806f0a Binary files /dev/null and b/docs/ui-validation/evidence/browse-confirmation/browse-coarse390.png differ diff --git a/docs/ui-validation/evidence/browse-confirmation/expanded-1024-zoom1.png b/docs/ui-validation/evidence/browse-confirmation/expanded-1024-zoom1.png new file mode 100644 index 00000000..6a6d8634 Binary files /dev/null and b/docs/ui-validation/evidence/browse-confirmation/expanded-1024-zoom1.png differ diff --git a/docs/ui-validation/evidence/browse-confirmation/expanded-1440-zoom1.png b/docs/ui-validation/evidence/browse-confirmation/expanded-1440-zoom1.png new file mode 100644 index 00000000..8e9960de Binary files /dev/null and b/docs/ui-validation/evidence/browse-confirmation/expanded-1440-zoom1.png differ diff --git a/docs/ui-validation/evidence/browse-confirmation/expanded-1440-zoom2.png b/docs/ui-validation/evidence/browse-confirmation/expanded-1440-zoom2.png new file mode 100644 index 00000000..b694b226 Binary files /dev/null and b/docs/ui-validation/evidence/browse-confirmation/expanded-1440-zoom2.png differ diff --git a/docs/ui-validation/evidence/browse-confirmation/expanded-390-zoom1.png b/docs/ui-validation/evidence/browse-confirmation/expanded-390-zoom1.png new file mode 100644 index 00000000..e1cfbba5 Binary files /dev/null and b/docs/ui-validation/evidence/browse-confirmation/expanded-390-zoom1.png differ diff --git a/docs/ui-validation/evidence/browse-confirmation/expanded-coarse390.png b/docs/ui-validation/evidence/browse-confirmation/expanded-coarse390.png new file mode 100644 index 00000000..d4f4f4c6 Binary files /dev/null and b/docs/ui-validation/evidence/browse-confirmation/expanded-coarse390.png differ diff --git a/docs/ui-validation/evidence/browse-confirmation/results.json b/docs/ui-validation/evidence/browse-confirmation/results.json new file mode 100644 index 00000000..2fe81109 --- /dev/null +++ b/docs/ui-validation/evidence/browse-confirmation/results.json @@ -0,0 +1,278 @@ +{ + "cases": [ + { + "viewport": 1440, + "scroll": 1440, + "coarse": false, + "targets": [ + { + "name": "Collapse SyntheticPlant", + "width": 128.78125, + "height": 19.6875 + }, + { + "name": "Collapse Pump01", + "width": 86.09375, + "height": 19.6875 + }, + { + "name": "Watch Pump01.PV", + "width": 56.546875, + "height": 27.46875 + }, + { + "name": "Watch Pump01.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + "width": 56.546875, + "height": 27.46875 + }, + { + "name": "Expand Sibling01", + "width": 91.375, + "height": 19.6875 + }, + { + "name": "Remove Pump01.PV", + "width": 66.515625, + "height": 27.46875 + }, + { + "name": "Remove Pump01.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + "width": 66.515625, + "height": 27.46875 + } + ], + "namedScrollRegions": 2, + "workflow": [ + "keyboardExpand", + "spaceWatch", + "repeatedWatchNoDuplicate", + "fullLongPathPreserved", + "searchWatchSameSubscription", + "noMatchClearFocus", + "subscriptionsRetained", + "namedScrollerTabReachesActions" + ], + "zoom": 1, + "dpr": 1 + }, + { + "viewport": 1024, + "scroll": 1024, + "coarse": false, + "targets": [ + { + "name": "Collapse SyntheticPlant", + "width": 128.78125, + "height": 19.6875 + }, + { + "name": "Collapse Pump01", + "width": 86.09375, + "height": 19.6875 + }, + { + "name": "Watch Pump01.PV", + "width": 56.546875, + "height": 27.46875 + }, + { + "name": "Watch Pump01.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + "width": 56.546875, + "height": 27.46875 + }, + { + "name": "Expand Sibling01", + "width": 91.375, + "height": 19.6875 + }, + { + "name": "Remove Pump01.PV", + "width": 66.515625, + "height": 27.46875 + }, + { + "name": "Remove Pump01.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + "width": 66.515625, + "height": 27.46875 + } + ], + "namedScrollRegions": 2, + "workflow": [ + "keyboardExpand", + "spaceWatch", + "repeatedWatchNoDuplicate", + "fullLongPathPreserved", + "searchWatchSameSubscription", + "noMatchClearFocus", + "subscriptionsRetained", + "namedScrollerTabReachesActions" + ], + "zoom": 1, + "dpr": 1 + }, + { + "viewport": 390, + "scroll": 390, + "coarse": false, + "targets": [ + { + "name": "Collapse SyntheticPlant", + "width": 128.78125, + "height": 19.6875 + }, + { + "name": "Collapse Pump01", + "width": 86.09375, + "height": 19.6875 + }, + { + "name": "Watch Pump01.PV", + "width": 56.546875, + "height": 27.46875 + }, + { + "name": "Watch Pump01.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + "width": 56.546875, + "height": 27.46875 + }, + { + "name": "Expand Sibling01", + "width": 91.375, + "height": 19.6875 + }, + { + "name": "Remove Pump01.PV", + "width": 66.515625, + "height": 27.46875 + }, + { + "name": "Remove Pump01.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + "width": 66.515625, + "height": 27.46875 + } + ], + "namedScrollRegions": 2, + "workflow": [ + "keyboardExpand", + "spaceWatch", + "repeatedWatchNoDuplicate", + "fullLongPathPreserved", + "searchWatchSameSubscription", + "noMatchClearFocus", + "subscriptionsRetained", + "namedScrollerTabReachesActions" + ], + "zoom": 1, + "dpr": 1 + }, + { + "viewport": 720, + "scroll": 720, + "coarse": false, + "targets": [ + { + "name": "Collapse SyntheticPlant", + "width": 128.78125, + "height": 19.671875 + }, + { + "name": "Collapse Pump01", + "width": 86.078125, + "height": 19.671875 + }, + { + "name": "Watch Pump01.PV", + "width": 56.546875, + "height": 27.4609375 + }, + { + "name": "Watch Pump01.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + "width": 56.546875, + "height": 27.4609375 + }, + { + "name": "Expand Sibling01", + "width": 91.359375, + "height": 19.671875 + }, + { + "name": "Remove Pump01.PV", + "width": 66.515625, + "height": 27.4609375 + }, + { + "name": "Remove Pump01.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + "width": 66.515625, + "height": 27.4609375 + } + ], + "namedScrollRegions": 2, + "workflow": [ + "keyboardExpand", + "spaceWatch", + "repeatedWatchNoDuplicate", + "fullLongPathPreserved", + "searchWatchSameSubscription", + "noMatchClearFocus", + "subscriptionsRetained", + "namedScrollerTabReachesActions" + ], + "zoom": 2, + "dpr": 2 + }, + { + "viewport": 390, + "scroll": 390, + "coarse": true, + "targets": [ + { + "name": "Collapse SyntheticPlant", + "width": 128.78125, + "height": 44 + }, + { + "name": "Collapse Pump01", + "width": 86.09375, + "height": 44 + }, + { + "name": "Watch Pump01.PV", + "width": 56.546875, + "height": 44 + }, + { + "name": "Watch Pump01.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + "width": 56.546875, + "height": 44 + }, + { + "name": "Expand Sibling01", + "width": 91.375, + "height": 44 + }, + { + "name": "Remove Pump01.PV", + "width": 66.515625, + "height": 44 + }, + { + "name": "Remove Pump01.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + "width": 66.515625, + "height": 44 + } + ], + "namedScrollRegions": 2, + "workflow": [ + "keyboardExpand", + "spaceWatch", + "repeatedWatchNoDuplicate", + "fullLongPathPreserved", + "searchWatchSameSubscription", + "noMatchClearFocus", + "subscriptionsRetained", + "namedScrollerTabReachesActions" + ] + } + ], + "errors": [] +} \ No newline at end of file diff --git a/docs/ui-validation/evidence/browse-first.log b/docs/ui-validation/evidence/browse-first.log new file mode 100644 index 00000000..9f64d00b --- /dev/null +++ b/docs/ui-validation/evidence/browse-first.log @@ -0,0 +1,6 @@ +{ + "cases": 5, + "overflow": [], + "coarseBelow44": [], + "errors": [] +} diff --git a/docs/ui-validation/evidence/browse-first/browse-1024-zoom1.png b/docs/ui-validation/evidence/browse-first/browse-1024-zoom1.png new file mode 100644 index 00000000..245fe932 Binary files /dev/null and b/docs/ui-validation/evidence/browse-first/browse-1024-zoom1.png differ diff --git a/docs/ui-validation/evidence/browse-first/browse-1440-zoom1.png b/docs/ui-validation/evidence/browse-first/browse-1440-zoom1.png new file mode 100644 index 00000000..91e89266 Binary files /dev/null and b/docs/ui-validation/evidence/browse-first/browse-1440-zoom1.png differ diff --git a/docs/ui-validation/evidence/browse-first/browse-1440-zoom2.png b/docs/ui-validation/evidence/browse-first/browse-1440-zoom2.png new file mode 100644 index 00000000..e605e8ff Binary files /dev/null and b/docs/ui-validation/evidence/browse-first/browse-1440-zoom2.png differ diff --git a/docs/ui-validation/evidence/browse-first/browse-390-zoom1.png b/docs/ui-validation/evidence/browse-first/browse-390-zoom1.png new file mode 100644 index 00000000..ea2d6e49 Binary files /dev/null and b/docs/ui-validation/evidence/browse-first/browse-390-zoom1.png differ diff --git a/docs/ui-validation/evidence/browse-first/browse-coarse390.png b/docs/ui-validation/evidence/browse-first/browse-coarse390.png new file mode 100644 index 00000000..8255360f Binary files /dev/null and b/docs/ui-validation/evidence/browse-first/browse-coarse390.png differ diff --git a/docs/ui-validation/evidence/browse-first/results.json b/docs/ui-validation/evidence/browse-first/results.json new file mode 100644 index 00000000..7a83cd90 --- /dev/null +++ b/docs/ui-validation/evidence/browse-first/results.json @@ -0,0 +1,273 @@ +{ + "cases": [ + { + "viewport": 1440, + "scroll": 1440, + "coarse": false, + "targets": [ + { + "name": "Collapse SyntheticPlant", + "width": 128.78125, + "height": 19.6875 + }, + { + "name": "Collapse Pump01", + "width": 86.09375, + "height": 19.6875 + }, + { + "name": "Watch Pump01.PV", + "width": 56.546875, + "height": 27.46875 + }, + { + "name": "Watch Pump01.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + "width": 56.546875, + "height": 27.46875 + }, + { + "name": "Expand Sibling01", + "width": 91.375, + "height": 19.6875 + }, + { + "name": "Remove", + "width": 66.515625, + "height": 27.46875 + }, + { + "name": "Remove", + "width": 66.515625, + "height": 27.46875 + } + ], + "namedScrollRegions": 0, + "workflow": [ + "keyboardExpand", + "spaceWatch", + "repeatedWatchNoDuplicate", + "fullLongPathPreserved", + "searchWatchSameSubscription", + "noMatchClearFocus", + "subscriptionsRetained" + ], + "zoom": 1, + "dpr": 1 + }, + { + "viewport": 1024, + "scroll": 1024, + "coarse": false, + "targets": [ + { + "name": "Collapse SyntheticPlant", + "width": 128.78125, + "height": 19.6875 + }, + { + "name": "Collapse Pump01", + "width": 86.09375, + "height": 19.6875 + }, + { + "name": "Watch Pump01.PV", + "width": 56.546875, + "height": 27.46875 + }, + { + "name": "Watch Pump01.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + "width": 56.546875, + "height": 27.46875 + }, + { + "name": "Expand Sibling01", + "width": 91.375, + "height": 19.6875 + }, + { + "name": "Remove", + "width": 66.515625, + "height": 27.46875 + }, + { + "name": "Remove", + "width": 66.515625, + "height": 27.46875 + } + ], + "namedScrollRegions": 0, + "workflow": [ + "keyboardExpand", + "spaceWatch", + "repeatedWatchNoDuplicate", + "fullLongPathPreserved", + "searchWatchSameSubscription", + "noMatchClearFocus", + "subscriptionsRetained" + ], + "zoom": 1, + "dpr": 1 + }, + { + "viewport": 390, + "scroll": 390, + "coarse": false, + "targets": [ + { + "name": "Collapse SyntheticPlant", + "width": 128.78125, + "height": 19.6875 + }, + { + "name": "Collapse Pump01", + "width": 86.09375, + "height": 19.6875 + }, + { + "name": "Watch Pump01.PV", + "width": 56.546875, + "height": 27.46875 + }, + { + "name": "Watch Pump01.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + "width": 56.546875, + "height": 27.46875 + }, + { + "name": "Expand Sibling01", + "width": 91.375, + "height": 19.6875 + }, + { + "name": "Remove", + "width": 66.515625, + "height": 27.46875 + }, + { + "name": "Remove", + "width": 66.515625, + "height": 27.46875 + } + ], + "namedScrollRegions": 0, + "workflow": [ + "keyboardExpand", + "spaceWatch", + "repeatedWatchNoDuplicate", + "fullLongPathPreserved", + "searchWatchSameSubscription", + "noMatchClearFocus", + "subscriptionsRetained" + ], + "zoom": 1, + "dpr": 1 + }, + { + "viewport": 720, + "scroll": 720, + "coarse": false, + "targets": [ + { + "name": "Collapse SyntheticPlant", + "width": 128.78125, + "height": 19.671875 + }, + { + "name": "Collapse Pump01", + "width": 86.078125, + "height": 19.671875 + }, + { + "name": "Watch Pump01.PV", + "width": 56.546875, + "height": 27.4609375 + }, + { + "name": "Watch Pump01.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + "width": 56.546875, + "height": 27.4609375 + }, + { + "name": "Expand Sibling01", + "width": 91.359375, + "height": 19.671875 + }, + { + "name": "Remove", + "width": 66.515625, + "height": 27.4609375 + }, + { + "name": "Remove", + "width": 66.515625, + "height": 27.4609375 + } + ], + "namedScrollRegions": 0, + "workflow": [ + "keyboardExpand", + "spaceWatch", + "repeatedWatchNoDuplicate", + "fullLongPathPreserved", + "searchWatchSameSubscription", + "noMatchClearFocus", + "subscriptionsRetained" + ], + "zoom": 2, + "dpr": 2 + }, + { + "viewport": 390, + "scroll": 390, + "coarse": false, + "targets": [ + { + "name": "Collapse SyntheticPlant", + "width": 128.78125, + "height": 19.6875 + }, + { + "name": "Collapse Pump01", + "width": 86.09375, + "height": 19.6875 + }, + { + "name": "Watch Pump01.PV", + "width": 56.546875, + "height": 27.46875 + }, + { + "name": "Watch Pump01.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + "width": 56.546875, + "height": 27.46875 + }, + { + "name": "Expand Sibling01", + "width": 91.375, + "height": 19.6875 + }, + { + "name": "Remove", + "width": 66.515625, + "height": 27.46875 + }, + { + "name": "Remove", + "width": 66.515625, + "height": 27.46875 + } + ], + "namedScrollRegions": 0, + "workflow": [ + "keyboardExpand", + "spaceWatch", + "repeatedWatchNoDuplicate", + "fullLongPathPreserved", + "searchWatchSameSubscription", + "noMatchClearFocus", + "subscriptionsRetained" + ] + } + ], + "errors": [] +} \ No newline at end of file diff --git a/docs/ui-validation/evidence/coarse-before.json b/docs/ui-validation/evidence/coarse-before.json new file mode 100644 index 00000000..853649df --- /dev/null +++ b/docs/ui-validation/evidence/coarse-before.json @@ -0,0 +1,52 @@ +{ + "viewport": 390, + "scroll": 390, + "coarse": true, + "targets": [ + { + "name": "Collapse SyntheticPlant", + "width": 128.78125, + "height": 19.6875 + }, + { + "name": "Collapse Pump01", + "width": 86.09375, + "height": 19.6875 + }, + { + "name": "Watch Pump01.PV", + "width": 56.546875, + "height": 27.46875 + }, + { + "name": "Watch Pump01.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + "width": 56.546875, + "height": 27.46875 + }, + { + "name": "Expand Sibling01", + "width": 91.375, + "height": 19.687469482421875 + }, + { + "name": "Remove", + "width": 66.515625, + "height": 27.46875 + }, + { + "name": "Remove", + "width": 66.515625, + "height": 27.46875 + } + ], + "namedScrollRegions": 0, + "workflow": [ + "keyboardExpand", + "spaceWatch", + "repeatedWatchNoDuplicate", + "fullLongPathPreserved", + "searchWatchSameSubscription", + "noMatchClearFocus", + "subscriptionsRetained" + ] +} \ No newline at end of file diff --git a/docs/ui-validation/evidence/mx01/fixture-build.log b/docs/ui-validation/evidence/mx01/fixture-build.log new file mode 100644 index 00000000..e1f70f47 --- /dev/null +++ b/docs/ui-validation/evidence/mx01/fixture-build.log @@ -0,0 +1,13 @@ + Determining projects to restore... + Restored /Users/dohertj2/Desktop/MxAccessGateway/src/ZB.MOM.WW.MxGateway.Contracts/ZB.MOM.WW.MxGateway.Contracts.csproj (in 159 ms). + Restored /Users/dohertj2/Desktop/MxAccessGateway/src/ZB.MOM.WW.MxGateway.Server/ZB.MOM.WW.MxGateway.Server.csproj (in 198 ms). + Restored /Users/dohertj2/Desktop/MxAccessGateway/docs/ui-validation/host/MxUiCanary.csproj (in 198 ms). + ZB.MOM.WW.MxGateway.Contracts -> /tmp/mx-ui-browse-artifacts/bin/ZB.MOM.WW.MxGateway.Contracts/release_net10.0/ZB.MOM.WW.MxGateway.Contracts.dll + ZB.MOM.WW.MxGateway.Server -> /tmp/mx-ui-browse-artifacts/bin/ZB.MOM.WW.MxGateway.Server/release/ZB.MOM.WW.MxGateway.Server.dll + MxUiCanary -> /tmp/mx-ui-browse-artifacts/bin/MxUiCanary/release/MxUiCanary.dll + +Build succeeded. + 0 Warning(s) + 0 Error(s) + +Time Elapsed 00:00:02.91 diff --git a/docs/ui-validation/evidence/mx01/green.log b/docs/ui-validation/evidence/mx01/green.log new file mode 100644 index 00000000..944c1ebe --- /dev/null +++ b/docs/ui-validation/evidence/mx01/green.log @@ -0,0 +1,9 @@ + Determining projects to restore... + All projects are up-to-date for restore. + ZB.MOM.WW.MxGateway.Contracts -> /Users/dohertj2/Desktop/MxAccessGateway/src/ZB.MOM.WW.MxGateway.Contracts/bin/Release/net10.0/ZB.MOM.WW.MxGateway.Contracts.dll + ZB.MOM.WW.MxGateway.Server -> /Users/dohertj2/Desktop/MxAccessGateway/src/ZB.MOM.WW.MxGateway.Server/bin/Release/net10.0/ZB.MOM.WW.MxGateway.Server.dll + ZB.MOM.WW.MxGateway.Tests -> /Users/dohertj2/Desktop/MxAccessGateway/src/ZB.MOM.WW.MxGateway.Tests/bin/Release/net10.0/ZB.MOM.WW.MxGateway.Tests.dll +Test run for /Users/dohertj2/Desktop/MxAccessGateway/src/ZB.MOM.WW.MxGateway.Tests/bin/Release/net10.0/ZB.MOM.WW.MxGateway.Tests.dll (.NETCoreApp,Version=v10.0) +A total of 1 test files matched the specified pattern. + +Passed! - Failed: 0, Passed: 7, Skipped: 0, Total: 7, Duration: 23 ms - ZB.MOM.WW.MxGateway.Tests.dll (net10.0) diff --git a/docs/ui-validation/evidence/mx01/red.log b/docs/ui-validation/evidence/mx01/red.log new file mode 100644 index 00000000..637c1c19 --- /dev/null +++ b/docs/ui-validation/evidence/mx01/red.log @@ -0,0 +1,18 @@ + Determining projects to restore... + All projects are up-to-date for restore. + ZB.MOM.WW.MxGateway.Contracts -> /Users/dohertj2/Desktop/MxAccessGateway/src/ZB.MOM.WW.MxGateway.Contracts/bin/Release/net10.0/ZB.MOM.WW.MxGateway.Contracts.dll + ZB.MOM.WW.MxGateway.Server -> /Users/dohertj2/Desktop/MxAccessGateway/src/ZB.MOM.WW.MxGateway.Server/bin/Release/net10.0/ZB.MOM.WW.MxGateway.Server.dll + ZB.MOM.WW.MxGateway.Tests -> /Users/dohertj2/Desktop/MxAccessGateway/src/ZB.MOM.WW.MxGateway.Tests/bin/Release/net10.0/ZB.MOM.WW.MxGateway.Tests.dll +Test run for /Users/dohertj2/Desktop/MxAccessGateway/src/ZB.MOM.WW.MxGateway.Tests/bin/Release/net10.0/ZB.MOM.WW.MxGateway.Tests.dll (.NETCoreApp,Version=v10.0) +A total of 1 test files matched the specified pattern. +[xUnit.net 00:00:00.20] ZB.MOM.WW.MxGateway.Tests.Dashboard.BrowseTreeAccessibilityTests.LazyNode_HasNamedNativeExpansionAndControlledRegion [FAIL] + Failed ZB.MOM.WW.MxGateway.Tests.Dashboard.BrowseTreeAccessibilityTests.LazyNode_HasNamedNativeExpansionAndControlledRegion [1 ms] + Error Message: + Assert.Contains() Failure: Sub-string not found +String: "
Synthetic cached Galaxy and redacted fixture values. No COM or worker.
+ @(_searchPending ? "Searching cached attributes…" : _searchError is not null ? "Search unavailable." : $"{_searchMatches.Count} matching attribute{(_searchMatches.Count == 1 ? "" : "s")}{(_searchMatches.Count >= SearchResultLimit ? " shown; refine the filter for more specific results." : ".")}") +
+ } @if (_roots.Count == 0) { @@ -48,11 +60,11 @@ } else if (_searchMatches.Count == 0) { -| Type | Quality | Updated | -+ | Actions | @@ -209,6 +226,25 @@ } @code { + private ElementReference _searchInput; + private bool _focusSearch; + private bool _disposing; + + private void ClearSearch() + { + Search = string.Empty; + _focusSearch = true; + } + + /// |
|---|