Commit 697cd5b
test(e2e): tighten WeChat channel assertions (#4340)
## Summary
Tightens the WeChat messaging-provider E2E coverage so the
non-interactive `WECHAT_BOT_TOKEN` path fails when required OpenClaw
state is missing. This covers the regression class where
`channels.openclaw-weixin` or the plugin install registry is not
restored.
## Related Issue
Related #4237: #4237 is not a bug, while this PR is to tighten the
WeChat validation in non-interactive flow
## Changes
- Add an E2E assertion for `plugins.installs.openclaw-weixin` in
`openclaw.json`.
- Change missing
`channels.openclaw-weixin.accounts[$WECHAT_ACCOUNT].enabled` from skip
to fail.
- Change missing WeChat account state files and account index from skip
to fail.
## Type of Change
- [ ] Code change (feature, bug fix, or refactor)
- [ ] Code change with doc updates
- [ ] Doc only (prose changes, no code sample modifications)
- [ ] Doc only (includes code sample changes)
- [x] Test-only change
## Verification
- [x] `npx prek run --all-files` passes
- [ ] `npm test` passes
- [x] Tests added or updated for new or changed behavior
- [x] No secrets, API keys, or credentials committed
- [ ] Docs updated for user-facing behavior changes
- [ ] `npm run docs` builds without warnings (doc changes only)
- [ ] Doc pages follow the style guide (doc changes only)
- [ ] New doc pages include SPDX header and frontmatter (new pages only)
Additional checks run:
- [x] `bash -n test/e2e/test-messaging-providers.sh`
- [x] `git diff --check`
- [x] `npx vitest run
test/e2e/scenario-framework-tests/e2e-convention-lint.test.ts
test/e2e/scenario-framework-tests/e2e-coverage-report.test.ts`
---
Signed-off-by: San Dang <sdang@nvidia.com>
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Tests**
* Added a new end-to-end check enforcing WeChat plugin installation
metadata and enabled entry, ensuring the plugin is installed, sourced
from npm, pinned to a concrete version, and has an install path.
* Hardened WeChat E2E checks to fail (with explicit error messages) when
the channel or per-account credential files are missing or the account
is disabled, improving test reliability and faster detection.
<!-- review_stack_entry_start -->
[](https://app.coderabbit.ai/change-stack/NVIDIA/NemoClaw/pull/4340?utm_source=github_walkthrough&utm_medium=github&utm_campaign=change_stack)
<!-- review_stack_entry_end -->
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Signed-off-by: Julie Yaunches <jyaunches@nvidia.com>
Co-authored-by: Julie Yaunches <jyaunches@nvidia.com>1 parent 40369c8 commit 697cd5b
1 file changed
Lines changed: 46 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1733 | 1733 | | |
1734 | 1734 | | |
1735 | 1735 | | |
| 1736 | + | |
| 1737 | + | |
| 1738 | + | |
| 1739 | + | |
| 1740 | + | |
| 1741 | + | |
| 1742 | + | |
| 1743 | + | |
| 1744 | + | |
| 1745 | + | |
| 1746 | + | |
| 1747 | + | |
| 1748 | + | |
| 1749 | + | |
| 1750 | + | |
| 1751 | + | |
| 1752 | + | |
| 1753 | + | |
| 1754 | + | |
| 1755 | + | |
| 1756 | + | |
| 1757 | + | |
| 1758 | + | |
| 1759 | + | |
| 1760 | + | |
| 1761 | + | |
| 1762 | + | |
| 1763 | + | |
| 1764 | + | |
| 1765 | + | |
| 1766 | + | |
| 1767 | + | |
| 1768 | + | |
| 1769 | + | |
| 1770 | + | |
| 1771 | + | |
| 1772 | + | |
| 1773 | + | |
| 1774 | + | |
| 1775 | + | |
| 1776 | + | |
| 1777 | + | |
| 1778 | + | |
1736 | 1779 | | |
1737 | 1780 | | |
1738 | 1781 | | |
| |||
1748 | 1791 | | |
1749 | 1792 | | |
1750 | 1793 | | |
1751 | | - | |
| 1794 | + | |
1752 | 1795 | | |
1753 | 1796 | | |
1754 | 1797 | | |
| |||
1759 | 1802 | | |
1760 | 1803 | | |
1761 | 1804 | | |
1762 | | - | |
| 1805 | + | |
1763 | 1806 | | |
1764 | 1807 | | |
1765 | 1808 | | |
| |||
1775 | 1818 | | |
1776 | 1819 | | |
1777 | 1820 | | |
1778 | | - | |
| 1821 | + | |
1779 | 1822 | | |
1780 | 1823 | | |
1781 | 1824 | | |
| |||
0 commit comments