From 3a3abe6f402ce135f6bb2f9f2296d81f0f01de38 Mon Sep 17 00:00:00 2001 From: Christopher DuBois Date: Fri, 13 Dec 2024 07:47:44 -0800 Subject: [PATCH] feat(support): add issuedesc to metadata --- packages/@webex/internal-plugin-support/src/support.js | 1 + .../internal-plugin-support/test/unit/spec/support.js | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/packages/@webex/internal-plugin-support/src/support.js b/packages/@webex/internal-plugin-support/src/support.js index b5cb0824f19..21d1db01cda 100644 --- a/packages/@webex/internal-plugin-support/src/support.js +++ b/packages/@webex/internal-plugin-support/src/support.js @@ -135,6 +135,7 @@ const Support = WebexPlugin.extend({ 'surveySessionId', 'productAreaTag', 'issueTypeTag', + 'issueDescTag', 'locussessionid', 'autoupload', ] diff --git a/packages/@webex/internal-plugin-support/test/unit/spec/support.js b/packages/@webex/internal-plugin-support/test/unit/spec/support.js index dca8c01936f..5d0fc5a62bd 100644 --- a/packages/@webex/internal-plugin-support/test/unit/spec/support.js +++ b/packages/@webex/internal-plugin-support/test/unit/spec/support.js @@ -151,6 +151,14 @@ describe('plugin-support', () => { assert.equal(found?.value, autoupload); }); + + it('sends issuedesctag if specified in metadata', () => { + const issueDescTag = 'issueDescTag'; + const result = webex.internal.support._constructFileMetadata({issueDescTag}); + const found = result.find((attr) => attr.key === 'issueDescTag'); + + assert.equal(found?.value, issueDescTag); + }); }); describe('#submitLogs()', () => {