feat(e2e-react): Add standalone offline mock server with REST and DDP emulation
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 20/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bien especificado
- Estado de actividad
- Estancado
- Stack tecnológico
- javascript, node.js, react
- Área
- backend-api-design, full-stack, testing
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- JavaScript
- Estrellas
- 170
- Forks
- 397
- Merge medio
- 12 d 14 h
- PR fusionados (30 d)
- 6
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de RocketChat/EmbeddedChat
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
RocketChat/EmbeddedChat#1429 ·
Los mantenedores suelen responder en 1 día
-
docs: README says Node 22 is required, but .nvmrc pins v24 and preinstall enforces itPosiblemente ocupada @Veerpratapgupta la tomó hace 29 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
RocketChat/EmbeddedChat#1377 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
test: isMessageSequential in layout_editor has no coverageQuizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
RocketChat/EmbeddedChat#1373 ·
Los mantenedores suelen responder en 1 día
-
Permissions change-detection in useFetchChatData is dead — applyPermissions re-runs on every callPosiblemente ocupada @yash113gadia la tomó hace 166 días. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
RocketChat/EmbeddedChat#1317 ·
Los mantenedores suelen responder en 1 día
-
Only the last emoji shortname in a message is converted to unicodePosiblemente ocupada @yash113gadia la tomó hace 166 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
RocketChat/EmbeddedChat#1315 ·
Los mantenedores suelen responder en 1 día
Todos los issues de RocketChat/EmbeddedChat
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
webtorrent/webtorrent#3131 ·
-
good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
trustjonathan/STUDY-HUB#15 ·
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 68/100
Los mantenedores suelen responder en 3 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100