Review findings on the harness. - timing=load posted nothing: mount() only started a replay for early/both and the load handler only logged. Both and load now post on the frame's load as well, which is the metadata path and the second copy VA sends, so the mode the controls offer is a mode that works. - a re-apply with the same prompts did not reload the frame: setting src to the value it already has is a no-op in the browser, so the new load post (and the refresh path generally) delivered nothing. The frame is reloaded explicitly when the URL is unchanged. - dataType was declared and never applied. A prompt configured as number now arrives as 42 rather than "42", which is what DC's clause builder branches on; a non-numeric value is left alone rather than becoming NaN. - the prompt select is found by walking the selects instead of building a [data-name="..."] selector, so a prompt name with a quote or bracket in it cannot throw inside apply() and leave the page with no frame. - the replay's give-up message now says when the app does not expose window.__vaLastMessage, so a changed probe is not reported as a delivery failure. - deploy.mjs throws when the Node runtime cannot read Set-Cookie rather than silently dropping every cookie and failing later as an unauthenticated 401. report.json carries a numeric prompt so the numeric path is exercised by default rather than only in theory.
38 lines
966 B
JSON
38 lines
966 B
JSON
{
|
|
"title": "VA report emulation - Data Controller embed",
|
|
"server": "http://localhost:5000",
|
|
"app": "clickme",
|
|
"table": "DC_JSLIB.MPE_X_TEST",
|
|
"mode": "refresh",
|
|
"timing": "both",
|
|
"sandbox": "allow-scripts allow-same-origin allow-forms allow-popups allow-downloads allow-modals",
|
|
"intervalMs": 50,
|
|
"replayTimeoutMs": 30000,
|
|
"parameters": [
|
|
{
|
|
"name": "pr1",
|
|
"label": "Some dropdown",
|
|
"dataType": "string",
|
|
"column": "SOME_DROPDOWN",
|
|
"options": ["Option 1", "Option 2", "Option 3"],
|
|
"default": "Option 2"
|
|
},
|
|
{
|
|
"name": "pr2",
|
|
"label": "Some date",
|
|
"dataType": "string",
|
|
"column": "SOME_DATE",
|
|
"options": ["12FEB1960", "01DEC2021", "August 02, 1971"],
|
|
"default": "12FEB1960"
|
|
},
|
|
{
|
|
"name": "pr3",
|
|
"label": "Some number",
|
|
"dataType": "number",
|
|
"column": "SOME_NUM",
|
|
"options": ["42", "1613.001"],
|
|
"default": "42"
|
|
}
|
|
]
|
|
}
|