test: Automated tests verifying presence of typing indicator.#38488
test: Automated tests verifying presence of typing indicator.#38488kodiakhq[bot] merged 13 commits intodevelopfrom
Conversation
|
Looks like this PR is not ready to merge, because of the following issues:
Please fix the issues and try again If you have any trouble, please check the PR guidelines |
|
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
WalkthroughAdds an E2E Playwright test for Omnichannel livechat typing indicators, exposes typing-indicator locators in page objects, makes typing indicators i18n-aware, moves relevant elements to role="status" for accessibility, and removes many per-locale typing keys from i18n files. Changes
Sequence Diagram(s)sequenceDiagram
participant Visitor as Visitor Widget
participant Backend as Server/API
participant AgentHome as Omnichannel Home (Agent)
participant AgentComposer as Agent Composer
Visitor->>Backend: send message / typing events
Backend->>AgentHome: deliver message & typing event
AgentHome->>AgentComposer: render message + show i18n label
AgentComposer->>Backend: agent typing events
Backend->>Visitor: relay typing indicator
Visitor->>Visitor: render typing indicator (role="status")
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
1 issue found across 3 files
Prompt for AI agents (all issues)
Check if these issues are valid — if so, understand the root cause of each and fix them.
<file name="apps/meteor/tests/e2e/page-objects/fragments/home-content.ts">
<violation number="1" location="apps/meteor/tests/e2e/page-objects/fragments/home-content.ts:77">
P3: Avoid element-based selectors for scoping; use an accessible role-based locator instead to reduce fragility.</violation>
</file>
Since this is your first cubic review, here's how it works:
- cubic automatically reviews your code and comments on bugs and improvements
- Teach cubic by replying to its comments. cubic learns from your replies and gets better over time
- Ask questions if you need clarification on any suggestion
Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #38488 +/- ##
===========================================
+ Coverage 70.39% 70.43% +0.03%
===========================================
Files 3162 3162
Lines 110650 110650
Branches 19862 19886 +24
===========================================
+ Hits 77891 77933 +42
+ Misses 30727 30692 -35
+ Partials 2032 2025 -7
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
1 issue found across 1 file (changes from recent commits).
Prompt for AI agents (all issues)
Check if these issues are valid — if so, understand the root cause of each and fix them.
<file name="apps/meteor/tests/e2e/page-objects/fragments/home-content.ts">
<violation number="1" location="apps/meteor/tests/e2e/page-objects/fragments/home-content.ts:77">
P2: Scope this text locator to a specific container (e.g., footer) to follow the project’s locator guidelines and avoid matching unrelated "typing" text elsewhere on the page.</violation>
</file>
Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.
apps/meteor/tests/e2e/omnichannel/omnichannel-livechat-typing-indicator.spec.ts
Outdated
Show resolved
Hide resolved
apps/meteor/tests/e2e/page-objects/omnichannel/omnichannel-livechat.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In `@packages/livechat/src/components/Messages/TypingDots/index.tsx`:
- Around line 12-20: Replace the hardcoded DEFAULT_TYPING_LABEL with the i18n
translation key in the TypingDots component: obtain the t function from the
livechat i18n setup (e.g., useTranslation or the project's i18n util) and use
t('Agent_is_typing') as the default for aria-label in TypingDots (referencing
DEFAULT_TYPING_LABEL and the TypingDots component) so the fallback respects the
user's locale; update imports to include the i18n accessor and remove the plain
string constant.
d65d674 to
cb9892f
Compare
JIRA TASK: https://rocketchat.atlassian.net/browse/QA-110
Description:
This PR verifies that the typing indicator is correctly displayed for both agents and visitors when either party starts typing.
Proposed changes (including videos or screenshots)
Issue(s)
Steps to test or reproduce
Further comments
Summary by CodeRabbit