feat(e2e-react): Add standalone offline mock server with REST and DDP emulation
Les mainteneurs répondent en général sous 1 jour
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 20/100
- Type d'issue
- Fonctionnalité
- Clarté
- Clairement spécifiée
- Activité
- À l'abandon
- Stack technique
- javascript, node.js, react
- Domaine
- backend-api-design, full-stack, testing
Piste de recherche
Start with packages/e2e-react/src/App.tsx to trace the development server configuration, then inspect the package’s REST calls and Meteor/DDP WebSocket handling. The acceptance criteria require mock responses for the listed endpoints, DDP handshake and message broadcasts, and session persistence in localStorage; verify that yarn dev opens a functional offline chat. A linked open pull request and the implementation note indicate work is already underway.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Problem Statement
In packages/e2e-react/src/App.tsx, the default development configuration points to https://demo.qa.rocket.chat/. This server is defunct (expired SSL certificate / 404 response), causing the browser to abort requests with Failed to fetch and displaying a connection error toast on login.
Additionally, testing UI components currently requires spinning up a heavy local Docker container with MongoDB and Rocket.Chat, which introduces a high barrier to entry for new contributors and leads to flaky E2E testing.
As an EmbeddedChat developer
I need to:
Run a standalone mock server inside the e2e-react package that intercepts REST authentication and emulates the real-time Meteor/DDP WebSocket protocol.
So That:
I can develop, interact with, and test EmbeddedChat features (login, message sending, room history, and session persistence) instantly and offline without requiring a live Rocket.Chat backend or Docker setup.
Acceptance Criteria
- Intercept REST API endpoints (
/api/v1/login,rooms.info,channels.messages,chat.sendMessage) with valid mock payloads. - Emulate the Meteor/DDP WebSocket handshake (
connect➔connected,sub➔ready) and message event broadcasting. - Persist mock authentication sessions in
localStorageacross page reloads. - Allow
yarn devto run out-of-the-box in a functional chat playground without network errors.
Demo / Screen Recording
https://github.com/user-attachments/assets/a4067913-0756-4f0a-bc43-201b0d347f2c
Implementation Note
I am working on the solution implementing both the REST and WebSocket/DDP interception layers and will link the pull request immediately.
- Langage dominant
- JavaScript
- Étoiles
- 170
- Forks
- 397
- Merge moyen
- 12 j 14 h
- PR mergées (30 j)
- 6
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Aucun guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de RocketChat/EmbeddedChat
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
RocketChat/EmbeddedChat#1429 ·
Les mainteneurs répondent en général sous 1 jour
-
docs: README says Node 22 is required, but .nvmrc pins v24 and preinstall enforces itPeut-être pris @Veerpratapgupta l’a pris il y a 29 jours. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
RocketChat/EmbeddedChat#1377 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
test: isMessageSequential in layout_editor has no coveragePeut-être à nouveau libre Une pull request pour cette issue a été fermée sans être fusionnée. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
RocketChat/EmbeddedChat#1373 ·
Les mainteneurs répondent en général sous 1 jour
-
Permissions change-detection in useFetchChatData is dead — applyPermissions re-runs on every callPeut-être pris @yash113gadia l’a pris il y a 166 jours. Ouverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 85/100
RocketChat/EmbeddedChat#1317 ·
Les mainteneurs répondent en général sous 1 jour
-
Only the last emoji shortname in a message is converted to unicodePeut-être pris @yash113gadia l’a pris il y a 167 jours. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 84/100
RocketChat/EmbeddedChat#1315 ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de RocketChat/EmbeddedChat
Issues similaires
-
Out of order / duplicate key error shows the key bytes as decimal or UTF-8, not hexPeut-être pris @bardrop l’a pris aujourd’hui. Ouverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 86/100
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 80/100
Les mainteneurs répondent en général sous 3 jours
-
`remix-hook-form/middleware` imports `unstable_createContext`, breaking on `react-router` >= 7.9.0Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
code-forge-io/remix-hook-form#189 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100