refactor(forms): enable approved Form A placements by default
This commit is contained in:
41 files changed
+862
-523
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user