Add RegEx matching
SketchingDev
released this
18 Jul 19:58
·
67 commits
to main
since this release
Add ability to match bot responses by regex:
CLI
config:
deploymentId: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
region: xxxx.pure.cloud
scenarios:
"Accept Survey":
- say: hi
- waitForReplyContaining: Can we ask you some questions about your experience today?
- say: Yes
- waitForReplyMatching: Thank you! Now for the next question[\.]+
API
await convo.waitForResponseWithTextMatchingPattern(
new RegExp(/Thank you! Now for the next question[\.]+/, 'im'),
{
timeoutInSeconds: 10,
},
);
Full Changelog: genesys-web-messaging-tester-cli-v1.0.10...genesys-web-messaging-tester-cli-v1.0.11