Expand e2e tests for WebSocket connection and message flow validation#43
Expand e2e tests for WebSocket connection and message flow validation#43
Conversation
Co-authored-by: mahata <23497+mahata@users.noreply.github.com>
Co-authored-by: mahata <23497+mahata@users.noreply.github.com>
Co-authored-by: mahata <23497+mahata@users.noreply.github.com>
|
@copilot Fix CI in GitHub Actions. |
Co-authored-by: mahata <23497+mahata@users.noreply.github.com>
Fixed the CI configuration by reordering pnpm setup, removing explicit version specification to use package.json's packageManager field, and adding dependency caching. The changes ensure pnpm is properly available for all build steps. (63570fd) Warning Firewall rules blocked me from connecting to one or more addressesI tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
@copilot Let's work on it step-by-step. Let's fix |
Co-authored-by: mahata <23497+mahata@users.noreply.github.com>
Fixed the CI/test job configuration for better reliability:
All tests (17), linting, and build steps pass locally. (44f479e) |
Co-authored-by: mahata <23497+mahata@users.noreply.github.com>
| await page.goto("/"); | ||
|
|
||
| // Initially, the status should show "Connecting..." | ||
| await expect(page.locator("#status")).toContainText("Connecting..."); |
There was a problem hiding this comment.
@copilot Let's get rid of this line. It seems like the transition from "Connecting..." to "Connected" happens too quickly, which is causing Playwright to miss the original text.
There was a problem hiding this comment.
Removed the line that checks for "Connecting..." text since the transition to "Connected" happens too quickly for Playwright to reliably catch. The test now directly waits for the "Connected" status, making it more stable. (2147c6f)
Co-authored-by: mahata <23497+mahata@users.noreply.github.com>
… Playwright config for video recording
…onsistency in code style
mahata
left a comment
There was a problem hiding this comment.
E2E tests are failing only on GitHub Actions. Fixing it will be done in the upcoming issues.
The e2e tests in
files/e2e/app.spec.tswere minimal and needed expansion to cover critical WebSocket functionality and message flow scenarios.Changes Made
Added two comprehensive e2e test scenarios to validate:
1. WebSocket Connection Status Test
2. Message Flow Test
Test Coverage
Screenshots
Initial state showing WebSocket connection:

After sending message:

Additional Changes
playwright.config.tsto usenpm startinstead ofpnpm startfor the webServer commandQuality Assurance
Fixes #42.
Warning
Firewall rules blocked me from connecting to one or more addresses
I tried to connect to the following addresses, but was blocked by firewall rules:
esm.ubuntu.com/usr/lib/apt/methods/https(dns block)If you need me to access, download, or install something from one of these locations, you can either:
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.