feat(e2e-react): Add standalone offline mock server with REST and DDP emulation
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 20/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Ferma
- Stack tecnologico
- javascript, node.js, react
- Ambito
- backend-api-design, full-stack, testing
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- JavaScript
- Stelle
- 170
- Fork
- 397
- Merge medio
- 12g 14h
- PR unite (30g)
- 6
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di RocketChat/EmbeddedChat
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
RocketChat/EmbeddedChat#1429 ·
I maintainer di solito rispondono entro 1 giorno
-
docs: README says Node 22 is required, but .nvmrc pins v24 and preinstall enforces itForse già presa @Veerpratapgupta l’ha presa 29 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
RocketChat/EmbeddedChat#1377 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
test: isMessageSequential in layout_editor has no coverageForse di nuovo libera Una pull request per questa issue è stata chiusa senza essere unita. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
RocketChat/EmbeddedChat#1373 ·
I maintainer di solito rispondono entro 1 giorno
-
Permissions change-detection in useFetchChatData is dead — applyPermissions re-runs on every callForse già presa @yash113gadia l’ha presa 166 giorni fa. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
RocketChat/EmbeddedChat#1317 ·
I maintainer di solito rispondono entro 1 giorno
-
Only the last emoji shortname in a message is converted to unicodeForse già presa @yash113gadia l’ha presa 166 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
RocketChat/EmbeddedChat#1315 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di RocketChat/EmbeddedChat
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
webtorrent/webtorrent#3131 ·
-
good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
trustjonathan/STUDY-HUB#15 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 68/100
I maintainer di solito rispondono entro 3 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100