Skip to content

Commit

Permalink
Merge pull request #260 from spring-media/TRAC-2189_cerberus_workflow…
Browse files Browse the repository at this point in the history
…_for_tealium

TRAC-2189: Cerberus workflow for tealium
  • Loading branch information
mehakraza authored Nov 14, 2024
2 parents d374aa9 + e0859ae commit b003100
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 30 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/trigger_cerberus_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ jobs:
uses: peter-evans/repository-dispatch@v3
with:
repository: spring-media/ds_cerberus_playwright
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.CERBERUS_ACCESS_TOKEN }}
event-type: run-tests
1 change: 0 additions & 1 deletion extensions/brandstory/brandstory_scrolldepth.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ window.addEventListener('scroll', function () {
const exportedFunctions = {
getCookie,
getDomainTagValue,
sendLinkEvent
};

// Evaluate runtime environment (Browser or Node.js)
Expand Down
19 changes: 0 additions & 19 deletions tests/brandstory/brsndstory_scrolldepth.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,25 +51,6 @@ describe('getDomainTagValue', () => {
});
});

describe('sendLinkEvent', () => {

test('sends link event with correct parameters', () => {
const scrollDepth = 50;
const platform = 'web';
const pageName = 'homepage';
const tagNumber = [10];

sendLinkEvent(scrollDepth, platform, pageName, tagNumber);

expect(window.utag.link).toHaveBeenCalledWith({
'event_name': 'scroll depth',
'event_action': 'view50',
'page_platform': platform,
'adobe_pageName': pageName
}, null, tagNumber);
});
});

describe('scroll event listener', () => {
let scrollArray;
let triggered50;
Expand Down
9 changes: 0 additions & 9 deletions tests/doplugins/doplugins_events.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,6 @@ describe('_eventsObj', () => {
jest.restoreAllMocks();
});

describe('TEST CI TEST TRIGGER', () => {
it('should push passed in event string to internal events array', () => {
const event = 'event-203';

s._eventsObj.addEvent(event);
expect(s._eventsObj.events).toEqual([event1, event203]);
});
});

describe('addEvent(event)', () => {
it('should push passed in event string to internal events array', () => {
const event1 = 'event-1';
Expand Down

0 comments on commit b003100

Please sign in to comment.