refactor(forms): enable approved Form A placements by default

This commit is contained in:
DeCentN2Madness committed 2026-10-30 15:08:02 -07:00
1 parent 55adb79705
commit 95c5f229f5
41 files changed
+862 -523

No files matched your search

+2 -3
View File
@@ -1,6 +1,6 @@
/**
* Guarded consultation-only Form A browser regression.
* Run after an explicitly gated isolated-test build. Every Jotform request is
* Run after a normal live build. Every Jotform request is
* fulfilled or aborted locally; no Jotform request is transmitted.
*/
import assert from 'node:assert/strict';
@@ -95,8 +95,7 @@ try {
const url = expectedUrl(expected.locale);
assert.equal(await adapter.count(), 1, expected.route);
assert.equal(await adapter.getAttribute('data-form-context'), 'consultation', expected.route);
assert.equal(await adapter.getAttribute('data-form-mode'), 'isolated-test', expected.route);
assert.equal(await adapter.getAttribute('data-form-environment'), 'isolated-test', expected.route);
assert.equal(await adapter.getAttribute('data-form-mode'), 'live', expected.route);
assert.equal(await iframe.getAttribute('title'), expected.locale === 'es' ? 'Formulario de consulta de AIA' : 'AIA consultation form', expected.route);
assert.equal(await iframe.getAttribute('referrerpolicy'), 'no-referrer', expected.route);
assert.equal(await iframe.getAttribute('sandbox'), 'allow-forms allow-scripts allow-same-origin', expected.route);