Rocket.Chat icon indicating copy to clipboard operation
Rocket.Chat copied to clipboard

test: create tests for Routing to bot agent

Open jessicaschelly opened this issue 10 months ago • 4 comments

Proposed changes (including videos or screenshots)

This PR adds end-to-end tests for the bot agent routing functionality in Omnichannel. The tests verify the behavior of chat assignments when bot routing is enabled and disabled on Manual Selection

New Tests Added

Bot Agent Routing - Manual Selection

  • Verifies that bot agents are prioritized over human agents when the setting is enabled
  • Verifies that bot agents are not priotized over human agents when the setting is disabled
  • 🔧 Tests bot agent assignment when bot is offline (currently marked as fixme)

Issue(s)

https://rocketchat.atlassian.net/browse/QA-69

Steps to test or reproduce

Further comments

  • One test is currently marked as fixme due to pending investigation of bot offline routing behavior

jessicaschelly avatar Apr 02 '25 15:04 jessicaschelly

Looks like this PR is not ready to merge, because of the following issues:

  • This PR is missing the 'stat: QA assured' label
  • This PR is missing the required milestone or project

Please fix the issues and try again

If you have any trouble, please check the PR guidelines

dionisio-bot[bot] avatar Apr 02 '25 15:04 dionisio-bot[bot]

⚠️ No Changeset found

Latest commit: d41eccc5ed1d67c863e13d9708d78d2e88554563

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

changeset-bot[bot] avatar Apr 02 '25 15:04 changeset-bot[bot]

Codecov Report

:white_check_mark: All modified and coverable lines are covered by tests. :white_check_mark: Project coverage is 64.58%. Comparing base (d6fa67e) to head (d41eccc). :warning: Report is 731 commits behind head on develop.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop   #35684      +/-   ##
===========================================
- Coverage    64.61%   64.58%   -0.03%     
===========================================
  Files         3128     3276     +148     
  Lines        98189   101139    +2950     
  Branches     18636    18907     +271     
===========================================
+ Hits         63442    65323    +1881     
- Misses       31919    32903     +984     
- Partials      2828     2913      +85     
Flag Coverage Δ
e2e 57.57% <ø> (-0.01%) :arrow_down:
unit 69.94% <ø> (+0.01%) :arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

:rocket: New features to boost your workflow:
  • :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • :package: JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

codecov[bot] avatar Apr 02 '25 15:04 codecov[bot]

PR Preview Action v1.6.1 :---: |

:rocket: View preview at
https://RocketChat.github.io/Rocket.Chat/pr-preview/pr-35684/

|
Built to branch gh-pages at 2025-06-06 13:44 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

github-actions[bot] avatar Apr 02 '25 15:04 github-actions[bot]