fix(referrals): restore existing hosted referral CTA and remove native placeholder
This commit is contained in:
7 files changed
+27
-11
No files matched your search
@@ -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`;
|
||||
|
||||
Reference in new issue
Block a user