From b102a061fef71073cee31bde30b221b6baa46b6f Mon Sep 17 00:00:00 2001 From: Jeffrey Hales Date: Sun, 25 Oct 2026 12:52:38 -0700 Subject: [PATCH] fix(landing): remove inactive-form availability copy --- .../campaign/ConsultationForm.astro | 12 +++------- .../campaign/EarlyInterventionPage.astro | 6 ++--- www/src/components/campaign/Hero.astro | 2 +- www/tools/campaign.test.mjs | 24 ++++++++++++------- 4 files changed, 23 insertions(+), 21 deletions(-) diff --git a/www/src/components/campaign/ConsultationForm.astro b/www/src/components/campaign/ConsultationForm.astro index 8f6a338..570baa6 100644 --- a/www/src/components/campaign/ConsultationForm.astro +++ b/www/src/components/campaign/ConsultationForm.astro @@ -20,7 +20,7 @@ const tel = phone.replace(/[^0-9+]/g, '');
-
+

Start with your contact details

Use this form to request a conversation. An AIA team member can explain the next steps for your family.

@@ -50,21 +50,15 @@ const tel = phone.replace(/[^0-9+]/g, '');
-

- Please avoid entering detailed medical, diagnostic, or insurance-member information here. An AIA team member can gather any needed details through the appropriate follow-up process. -

-

- Online submissions are not enabled yet. Please call AIA at {phone} to discuss services. Review AIA's privacy policy. -

-

Online requests are not enabled on this site yet. Please call AIA at {phone} during staffed hours.

+

Questions? Call AIA at {phone}. Review AIA's privacy policy.

Call AIA at {phone}

-

Mon–Fri, 8:00 AM–6:00 PM
Online requests are not enabled yet.

+

Mon–Fri, 8:00 AM–6:00 PM

diff --git a/www/src/components/campaign/EarlyInterventionPage.astro b/www/src/components/campaign/EarlyInterventionPage.astro index 0005468..e69e421 100644 --- a/www/src/components/campaign/EarlyInterventionPage.astro +++ b/www/src/components/campaign/EarlyInterventionPage.astro @@ -23,17 +23,17 @@
-
+

Call AIA about early intervention

-

Online requests are not enabled on this page. Please call AIA to discuss your questions and possible next steps.

+

Speak with an AIA team member about your questions and possible next steps.

-

Online submissions are not enabled on this site. Please call (480) 687-7099 to contact AIA.

+
-

Calls are answered Mon–Fri, 8:00 AM–6:00 PM. Online forms are not enabled yet; call AIA at {phone}.

+

Calls are answered Mon–Fri, 8:00 AM–6:00 PM. Call AIA at {phone}.

diff --git a/www/tools/campaign.test.mjs b/www/tools/campaign.test.mjs index bd7ad6d..39eff30 100644 --- a/www/tools/campaign.test.mjs +++ b/www/tools/campaign.test.mjs @@ -89,24 +89,29 @@ test('inactive lead presentation has no native submission surface or live integr assert.equal($('#lead-form [name]:not([disabled])').length, 0); assert.equal($('#lead-form button').attr('type'), 'button'); assert.ok($('#lead-form button').is('[disabled]')); - assert.match($('#campaign-form-status').text(), /not enabled/); - assert.ok($('#campaign-form-status a[href^="tel:"]').length); + assert.equal($('[data-form-status-notice], #campaign-form-status').length, 0); + assert.equal($('#lead-form a[href^="tel:"]').length, 1); + assert.equal($('#lead-form a[href="/privacy-policy"]').length, 1); + assert.doesNotMatch($('#lead-form').text(), /(?:online )?(?:forms?|requests?|submissions?) (?:are |is )?(?:unavailable|not enabled)|detailed medical|diagnostic|insurance-member/i); + assert.equal($('#lead-form p:empty').length, 0); assert.equal($('iframe').length, 0); assert.equal($('script[src]').length, 0); assert.doesNotMatch($('script').text(), /gtag|googletagmanager|sessionStorage|fetch\(|utm_|gclid|postMessage/); } }); -test('inactive form messaging directs visitors to telephone contact', () => { +test('campaign contact paths remain without unavailable-form messaging', () => { for (const page of pages) { const $ = html(page); const heroNote = $('.hero .form-note').text(); assert.doesNotMatch(heroNote, /forms are available anytime/i); - assert.match(heroNote, /online forms are not enabled/i); + assert.doesNotMatch(heroNote, /online forms are not enabled/i); assert.ok($('.hero .form-note a[href^="tel:"]').length); assert.doesNotMatch($('#lead-form').text(), /By submitting this form/i); - assert.match($('#lead-form').text(), /Online submissions are not enabled/i); assert.ok($('#lead-form a[href^="tel:"]').length); + assert.ok($('#lead-form a[href="/privacy-policy"]').length); + assert.doesNotMatch($('#lead-form').text(), /(?:online )?(?:forms?|requests?|submissions?) (?:are |is )?(?:unavailable|not enabled)/i); + assert.doesNotMatch($('.consultation__contact').text(), /Online (?:forms|requests|submissions)/i); } }); @@ -148,7 +153,8 @@ test('early-intervention preserves its own publication identity and source secti assert.equal($('#consultation input').length, 3); assert.equal($('#consultation input:disabled').length, 3); assert.equal($('#consultation button').attr('type'), 'button'); - assert.ok($('#consultation-unavailable a[href="tel:+14806877099"]').length); + assert.ok($('.qr-call-card a[href="tel:+14806877099"]').length); + assert.equal($('#consultation-unavailable, [data-form-status-notice]').length, 0); assert.equal($('img[src^="https:"]').length, 0); assert.equal($('.early-header').length, 0); assert.equal($('.site-header').length, 1); @@ -161,12 +167,14 @@ test('early-intervention preserves its own publication identity and source secti assert.equal($('.mobile-cta').length, 0); }); -test('early-intervention inactive copy does not promise online requests', () => { +test('early-intervention keeps telephone contact without unavailable-form copy', () => { const $ = load(read('dist/lp/early-intervention/index.html')); assert.equal($('.eyebrow').first().text(), 'Evidence-Based ABA Therapy'); assert.doesNotMatch($('.qr-landing').text(), /Send a short request/); assert.doesNotMatch($('.qr-landing').text(), /Evidense-Based/); - assert.match($('.qr-contact-section').text(), /Online requests are not enabled/); + assert.doesNotMatch($('.qr-landing').text(), /(?:online )?(?:forms?|requests?|submissions?) (?:are |is )?(?:unavailable|not enabled)/i); + assert.doesNotMatch($('.qr-contact-section').text(), /detailed medical|diagnostic|insurance-member/i); + assert.equal($('.qr-contact-section p:empty').length, 0); assert.ok($('.qr-hero-actions a[href^="tel:"]').length); assert.ok($('.qr-final-cta a[href^="tel:"]').length); assert.equal($('form').length, 0);