ATF Test Suite errors: "Uncaught ReferenceError: g_form is not defined" upon upgradeIssue After upgrade, it has been observed that several Test Suites are failing with an error message "Uncaught ReferenceError: g_form is not defined" while the individual tests run successfully. Issue is observed when the tests are run via test suites. Log details for step "Click a UI Action": Uncaught ReferenceError: g_form is not defined at evalTerm (VM442 ui_policy.jsx:101) at evaluateTerm (VM442 ui_policy.jsx:83) at evaluateCondition (VM442 ui_policy.jsx:74) at e.runPolicy (VM442 ui_policy.jsx:39) at e.runPolicyOnLoad (VM442 ui_policy.jsx:33) at ui_policy_onLoad (VM442 ui_policy.jsx:830) at runBeforeRender (js_includes_doctype.jsx?v=03-31-2020_1417&lp=Fri_Apr_24_03_46_50_PDT_2020&c=32_1089:461) at z_last_include.jsx?v=03-31-2020_1417:32 at z_last_include.jsx?v=03-31-2020_1417:38CauseWhen the ATF (automated test framework) submits form, it relies on the platform's default submit and return behavior, which sometimes accesses form of a record that was deleted. Workaround Do not submit forms in scenarios where records can be deleted. Instead, use UI action step "Save" for new record forms that would create, save and reload on the same page to make sure we aren't accessing the deleted records.