Skip to content

Commit 8d086fd

Browse files
committed
fix(rokt): tighten exit-intent override ids and bridge tests
1 parent 69536c3 commit 8d086fd

2 files changed

Lines changed: 5 additions & 8 deletions

File tree

‎kits/rokt/src/Rokt-Kit.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,6 @@ const EXIT_INTENT_IDENTITY_CAPTURE_EVENT_NAME = 'rokt:identity-capture';
325325
const LEAD_CAPTURE_SUBMITTED_EVENT_NAME = 'LEAD_CAPTURE_SUBMITTED';
326326
const EXIT_INTENT_EXTENSION_NAME = 'exit-intent';
327327
const EXIT_INTENT_ACCOUNT_ID_OVERRIDES = [
328-
'1234567890',
329328
'3479519924056514560',
330329
'3484183287406608384',
331330
'3322507482753462272',

‎kits/rokt/test/src/tests.spec.ts‎

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5135,11 +5135,9 @@ describe('Rokt Forwarder', () => {
51355135
exitIntentConfig: '{"identifier":"placement-explicit"}',
51365136
},
51375137
reportService.cb,
5138-
true,
5138+
false,
51395139
);
51405140

5141-
await waitForCondition(() => (window as any).mParticle.forwarder.isInitialized);
5142-
51435141
const launcherScript = document.getElementById('rokt-launcher') as HTMLScriptElement;
51445142
expect(launcherScript).not.toBeNull();
51455143
expect(launcherScript.src).toContain('extensions=exit-intent');
@@ -5166,7 +5164,7 @@ describe('Rokt Forwarder', () => {
51665164
it('should enable exit-intent by account override when mPServer config is absent', async () => {
51675165
await (window as any).mParticle.forwarder.init(
51685166
{
5169-
accountId: '1234567890',
5167+
accountId: '3479519924056514560',
51705168
},
51715169
reportService.cb,
51725170
true,
@@ -5305,7 +5303,7 @@ describe('Rokt Forwarder', () => {
53055303
it('should map LEAD_CAPTURE_SUBMITTED payload into identity and attributes', async () => {
53065304
await (window as any).mParticle.forwarder.init(
53075305
{
5308-
accountId: '1234567890',
5306+
accountId: '3479519924056514560',
53095307
},
53105308
reportService.cb,
53115309
true,
@@ -5317,7 +5315,7 @@ describe('Rokt Forwarder', () => {
53175315
new CustomEvent('LEAD_CAPTURE_SUBMITTED', {
53185316
detail: {
53195317
rclid: 'rclid-123',
5320-
accountID: '1234567890',
5318+
accountID: '3479519924056514560',
53215319
referralCreativeID: 'creative-789',
53225320
fields: [
53235321
{ formKey: 'LeadForm', fieldKey: 'email', value: 'person@example.com' },
@@ -5334,7 +5332,7 @@ describe('Rokt Forwarder', () => {
53345332
},
53355333
});
53365334
expect(currentUserSetUserAttributeSpy).toHaveBeenCalledWith('rokt_rclid', 'rclid-123');
5337-
expect(currentUserSetUserAttributeSpy).toHaveBeenCalledWith('rokt_account_id', '1234567890');
5335+
expect(currentUserSetUserAttributeSpy).toHaveBeenCalledWith('rokt_account_id', '3479519924056514560');
53385336
expect(currentUserSetUserAttributeSpy).toHaveBeenCalledWith('rokt_referral_creative_id', 'creative-789');
53395337
expect((window as any).mParticle.forwarder.userAttributes.rokt_rclid).toBe('rclid-123');
53405338
});

0 commit comments

Comments
 (0)