diff --git a/packages/genesys-web-messaging-tester-cli/__tests__/commands/scripted/RetryOnUnorderedMessageFailure.spec.ts b/packages/genesys-web-messaging-tester-cli/__tests__/commands/scripted/RetryOnUnorderedMessageFailure.spec.ts index 93f4317..265e46f 100644 --- a/packages/genesys-web-messaging-tester-cli/__tests__/commands/scripted/RetryOnUnorderedMessageFailure.spec.ts +++ b/packages/genesys-web-messaging-tester-cli/__tests__/commands/scripted/RetryOnUnorderedMessageFailure.spec.ts @@ -72,7 +72,7 @@ describe('Retry unordered message', () => { webMessengerSessionFactory: (config, reorderedMessageDelayer) => new WebMessengerGuestSession( config, - { IsTest: 'true' }, + { IsAutomatedTest: 'true' }, reorderedMessageDelayer, () => new WebSocket(`ws://localhost:${genesysServerFixture.port}`), ), diff --git a/packages/genesys-web-messaging-tester-cli/package.json b/packages/genesys-web-messaging-tester-cli/package.json index 7c0b4fc..3334152 100644 --- a/packages/genesys-web-messaging-tester-cli/package.json +++ b/packages/genesys-web-messaging-tester-cli/package.json @@ -1,6 +1,6 @@ { "name": "@ovotech/genesys-web-messaging-tester-cli", - "version": "2.0.1", + "version": "2.0.2", "main": "lib/index.js", "types": "lib/index.d.ts", "license": "Apache-2.0", diff --git a/packages/genesys-web-messaging-tester-cli/src/commands/aiTest/createAiTestCommand.ts b/packages/genesys-web-messaging-tester-cli/src/commands/aiTest/createAiTestCommand.ts index 73e596b..bb35ef7 100644 --- a/packages/genesys-web-messaging-tester-cli/src/commands/aiTest/createAiTestCommand.ts +++ b/packages/genesys-web-messaging-tester-cli/src/commands/aiTest/createAiTestCommand.ts @@ -45,7 +45,8 @@ export function createAiTestCommand({ command = new Command(), ui = new Ui(), openAiChatCompletionFactory = (config) => new OpenAI(config).chat.completions, - webMessengerSessionFactory = (config) => new WebMessengerGuestSession(config, { IsTest: 'true' }), + webMessengerSessionFactory = (config) => + new WebMessengerGuestSession(config, { IsAutomatedTest: 'true' }), conversationFactory = (session) => new Conversation(session), processEnv = process.env, fsReadFileSync = readFileSync, diff --git a/packages/genesys-web-messaging-tester-cli/src/commands/scriptedTest/createScriptedTestCommand.ts b/packages/genesys-web-messaging-tester-cli/src/commands/scriptedTest/createScriptedTestCommand.ts index 43a4a7f..a1a31fa 100644 --- a/packages/genesys-web-messaging-tester-cli/src/commands/scriptedTest/createScriptedTestCommand.ts +++ b/packages/genesys-web-messaging-tester-cli/src/commands/scriptedTest/createScriptedTestCommand.ts @@ -68,7 +68,7 @@ export function createScriptedTestCommand({ reorderedMessageDelayerFactory = (delayBeforeEmittingInMs) => new ReorderedMessageDelayer(delayBeforeEmittingInMs), webMessengerSessionFactory = (config, reorderedMessageDelayer) => - new WebMessengerGuestSession(config, { IsTest: 'true' }, reorderedMessageDelayer), + new WebMessengerGuestSession(config, { IsAutomatedTest: 'true' }, reorderedMessageDelayer), conversationFactory = (session) => new Conversation(session), fsReadFileSync = readFileSync, fsAccessSync = accessSync,