fix(referrals): restore existing hosted referral CTA and remove native placeholder

This commit is contained in:
DeCentN2Madness committed 2026-11-01 18:10:51 -07:00
1 parent 85def8466c
commit 5c8ba2e11e
7 files changed
+27 -11

No files matched your search

+13 -1
View File
@@ -1075,7 +1075,7 @@ test('Phase 7 privacy page preserves policy sections and reciprocal eligible nav
});
test('Phase 9 off-mode form surfaces localize Spanish without enabling submission', () => {
for (const route of ['/es/contact','/es/client-consultation','/contact','/client-consultation','/referrals','/schedule-consultation']) {
for (const route of ['/es/contact','/es/client-consultation','/contact','/client-consultation','/schedule-consultation']) {
const $ = load(artifacts.get('staging').html.get(route));
const form = $('[data-aia-form]');
assert.equal(form.length, 1, route);
@@ -1095,6 +1095,18 @@ test('Phase 9 off-mode form surfaces localize Spanish without enabling submissio
assert.match($('#aia-openstreetmap').attr('data-tile-alt'), /^Mapa de OpenStreetMap/);
});
test('referrals retains the existing hosted Jotform CTA without rendering a local form', () => {
for (const mode of ['staging', 'indexing']) {
const $ = load(artifacts.get(mode).html.get('/referrals'));
const link = $('main a').filter((_i, element) => $(element).text().trim() === 'Refer a Client');
assert.equal(link.length, 1, mode);
assert.equal(link.attr('href'), 'https://form.jotform.com/231638510219149');
assert.ok(link.hasClass('content-button'));
assert.equal($('[data-aia-form], [data-jotform-form-a], #form-title').length, 0);
assert.equal($('main form').length, 0);
}
});
test('Phase 7 author labels and Arabic credential isolation preserve archive SEO', () => {
for (const locale of ['en','es','ar']) {
const route = `${locale === 'en' ? '' : `/${locale}`}/library/author/rula-diab`;