test: create tests for Routing to bot agent
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
fixmedue to pending investigation of bot offline routing behavior
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
⚠️ 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
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
@@ 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.
PR Preview Action v1.6.1 :---: |
:rocket: View preview athttps://RocketChat.github.io/Rocket.Chat/pr-preview/pr-35684/
|