fsl

Folger TNEW Web Components

Testing

To test the components outside of TNEW we need a session key. As there is no point going through the palava of setting up a shared session service there is some manual work required.

  1. First copy the following JS code const sessionKey = window.dataLayer.find(function (e) { return e.hasOwnProperty('session') }).session.key const encodedSessionKey = btoa(sessionKey) console.log(encodedSessionKey)
  2. Next visit the Folger Test TNEW.
  3. Right click and select inspect.
  4. Select console and paste the copied code inside.
  5. An encrypted session key will be returned.
  6. Copy this code and paste it into the text field below.
  7. Click Add session key button to add it as a cookie to this site so we can use it for demo purposes.

Notes

The cookie is set to expire after 20 minutes. If you use a component multiple times it is possible errors might occur in TNEW. If this happens refresh TNEW to get a new session, and run through the steps above again to continue testing.


Examples

Example links will appear when you've created a session key cookie.