webchat-html-tests
Skill1.8k starsChanged 6 months agoMITView on GitHub
Run Bot Framework Web Chat HTML tests in Docker/Selenium Grid. Use when: running __tests__/html2, debugging failing HTML tests, updating snapshots, checking grid health, or cleaning leaked Selenium sessions.
Trending
Quiet this year.about the whole repository
Who's talking about microsoft/BotFramework-WebChat
- microsoft/BotFramework-Services“[Tracking] Add support for deleteActivity and updateActivity”GitHub · Nov 21, 2018 · 13 reactions
- microsoft/BotFramework-DirectLineJS“Resume conversation”GitHub · Mar 1, 2017 · 7 reactions
- microsoft/BotFramework-Services“[Waiting for Adaptive Card fix] Part of the content of Adaptive Card is lost while sending through Direct …”GitHub · May 21, 2020 · 2 reactions
- microsoft/BotFramework-Emulator“Remove styling for download icon”GitHub · Jan 30, 2020 · 2 reactions
- microsoft/AdaptiveCards“Accessibility Issue Adaptive Card - Buttons with identical accessible names”GitHub · Nov 7, 2022 · 1 reactions
The biggest 5 of 34 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 34
Talked about on GitHub (34 times).
On GitHub · 34
- Nov 21, 2018[Tracking] Add support for deleteActivity and updateActivity — microsoft/BotFramework-Services13 reactions · 36 comments
- Mar 1, 2017Resume conversation — microsoft/BotFramework-DirectLineJS7 reactions · 40 comments
- May 21, 2020[Waiting for Adaptive Card fix] Part of the content of Adaptive Card is lost while sending through Direct Line channel — microsoft/BotFramework-Services2 reactions · 4 comments
- Jan 30, 2020Remove styling for download icon — microsoft/BotFramework-Emulator2 reactions
- Nov 7, 2022Accessibility Issue Adaptive Card - Buttons with identical accessible names — microsoft/AdaptiveCards1 reaction · 5 comments
29 more on GitHub
- Jan 8, 2020Modify WebChat implementation to support connecting to a Direct Line Speech bot remotely — microsoft/BotFramework-Emulator1 reaction
- Sep 21, 2019Bot timeout on conversationUpdate request should result in 502 instead of 401 — microsoft/BotFramework-Services1 reaction · 2 comments
- Jul 16, 2019Number Input default value undefined when value is set to zero — microsoft/AdaptiveCards1 reaction · 5 comments
- Apr 16, 2019Send conversationUpdate for a user when they've sent their first message. — microsoft/BotFramework-Emulator1 reaction · 1 comment
- Dec 21, 2018Request: Adding aria-label (speak property) to Input.Date? — microsoft/AdaptiveCards1 reaction · 3 comments
- Dec 14, 2018Reading 'Group' between the text boxes while navigating in scan mode. — microsoft/AdaptiveCards1 reaction · 2 comments
- May 23, 2018$activity stream stops after connectionStatus$ emits 'ExpiredToken'. — microsoft/BotFramework-DirectLineJS1 reaction · 9 comments
- Aug 4, 2017Allow text wrapping on Action buttons when layout is vertical — microsoft/AdaptiveCards1 reaction · 8 comments
- Nov 11, 2024[Snyk] Upgrade botframework-webchat from 4.17.0 to 4.18.0 — DevangPatelUK/BotFramework-WebChat0 reactions
- Nov 11, 2024[Snyk] Upgrade botframework-webchat from 4.17.0 to 4.18.0 — DevangPatelUK/BotFramework-WebChat0 reactions
- Nov 9, 2024[Snyk] Upgrade botframework-webchat from 4.17.0 to 4.18.0 — DevangPatelUK/BotFramework-WebChat0 reactions
- Sep 21, 2024[Snyk] Upgrade: botframework-webchat-component, botframework-webchat — DevangPatelUK/BotFramework-WebChat0 reactions
- Sep 21, 2024[Snyk] Upgrade: botframework-webchat-component, botframework-webchat — DevangPatelUK/BotFramework-WebChat0 reactions
- Sep 20, 2024[Snyk] Upgrade: botframework-webchat-component, botframework-webchat — DevangPatelUK/BotFramework-WebChat0 reactions
- Sep 20, 2024[Snyk] Upgrade: botframework-webchat-component, botframework-webchat — DevangPatelUK/BotFramework-WebChat0 reactions
- Sep 19, 2024[Snyk] Upgrade: botframework-webchat-component, botframework-webchat — DevangPatelUK/BotFramework-WebChat0 reactions
- Sep 18, 2024[Snyk] Upgrade: botframework-webchat-component, botframework-webchat — DevangPatelUK/BotFramework-WebChat0 reactions
- Sep 18, 2024[Snyk] Upgrade: botframework-webchat-component, botframework-webchat — DevangPatelUK/BotFramework-WebChat0 reactions
- Sep 18, 2024[Snyk] Upgrade: botframework-webchat-component, botframework-webchat — DevangPatelUK/BotFramework-WebChat0 reactions
- Sep 16, 2024[Snyk] Upgrade: botframework-webchat-component, botframework-webchat — DevangPatelUK/BotFramework-WebChat0 reactions
- Sep 16, 2024[Snyk] Upgrade: botframework-webchat-component, botframework-webchat — DevangPatelUK/BotFramework-WebChat0 reactions
- Sep 12, 2024[Snyk] Upgrade: botframework-webchat-component, botframework-webchat — DevangPatelUK/BotFramework-WebChat0 reactions
- Sep 11, 2024[Snyk] Upgrade: botframework-webchat-component, botframework-webchat — DevangPatelUK/BotFramework-WebChat0 reactions
- Sep 8, 2024[Snyk] Upgrade: botframework-webchat-component, botframework-webchat — DevangPatelUK/BotFramework-WebChat0 reactions
- Sep 7, 2024[Snyk] Upgrade: botframework-webchat-component, botframework-webchat — DevangPatelUK/BotFramework-WebChat0 reactions
- Sep 4, 2024Unable to upgrade botframework-webchat in SharePoint SSO Component — microsoft/CopilotStudioSamples0 reactions
- Nov 28, 2023[Snyk] Fix for 4 vulnerabilities — Ramboll/PnP0 reactions
- Jun 15, 2021Add `inputHint` to plugin response in `NLP.js` - switches on speech recognition — nfreear/survey-bot0 reactions
- Nov 6, 2020[samples/javascript_es6/01.browser-echo] Upgrade botframework-webchat to version 4.11.0 — admdev8/BotBuilder-Samples0 reactions · 5 comments
In this repository8 other files it gives its agents.
- AGENTS.mdAGENTS.md
- packages/api/AGENTS.mdAGENTS.md
- packages/api-graph/AGENTS.mdAGENTS.md
- packages/api-middleware/AGENTS.mdAGENTS.md
- packages/base/AGENTS.mdAGENTS.md
- packages/core/AGENTS.mdAGENTS.md
- packages/core-debug-api/AGENTS.mdAGENTS.md
- packages/core-graph/AGENTS.mdAGENTS.md
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 8 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 9
Run the HTML test harness, keep Selenium Grid healthy, and debug failures without keeping all of the operational detail in the skill body.
- Distinctive: line 22
Use the bundled script instead of pasting long Docker commands.
- Distinctive: line 42
Stop if the script times out or if the node summary does not show ready nodes.
- Distinctive: line 46
Run the full suite:
- Distinctive: line 52
Run a focused HTML test with a regex anchored to the exact file:
- Distinctive: line 58
Update snapshots for an expected visual change:
- Distinctive: line 70
If leaked sessions remain, clean them before the next Jest run or the grid can stall.
- Very specific: line 74
If dist files return 404s after a local build, restart webchat2:
- Distinctive: line 80
If a failure is not obvious, load the reference docs before changing code:
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Web Chat HTML Tests
Run the HTML test harness, keep Selenium Grid healthy, and debug failures without keeping all of the operational detail in the skill body.
When to Use
- Running
__tests__/html2for a branch or PR - Debugging a failing HTML or snapshot test
- Updating snapshots after an intentional visual change
- Checking whether Selenium Grid is ready or leaking sessions
Procedure
1. Start Selenium Grid
Use the bundled script instead of pasting long Docker commands.
For a focused test run, keep the default scale of 2 Chrome nodes:
./.github/skills/webchat-html-tests/scripts/start-grid.shFor a full run, match Jest's 4 workers:
CHROME_SCALE=4 ./.github/skills/webchat-html-tests/scripts/start-grid.sh2. Wait for Grid Readiness
python3 ./.github/skills/webchat-html-tests/scripts/wait-for-grid.pyStop if the script times out or if the node summary does not show ready nodes.
3. Run Tests
Run the full suite:
./.github/skills/webchat-html-tests/scripts/run-html-tests.shRun a focused HTML test with a regex anchored to the exact file:
./.github/skills/webchat-html-tests/scripts/run-html-tests.sh "__tests__/html2/activity/message-status\.html$"Update snapshots for an expected visual change:
./.github/skills/webchat-html-tests/scripts/run-html-tests.sh --update "__tests__/html2/activity/message-status\.html$"4. Clean Grid Sessions After Every Run
python3 ./.github/skills/webchat-html-tests/scripts/cleanup-grid-sessions.pyIf leaked sessions remain, clean them before the next Jest run or the grid can stall.
5. Recover Common Infra Problems
If dist files return 404s after a local build, restart webchat2:
docker compose -f docker-compose-wsl2.yml restart webchat2If a failure is not obvious, load the reference docs before changing code:
- Architecture and test layout
- Failure modes and snapshot workflow
6. Tear Down
docker compose -f docker-compose-wsl2.yml downChecklist
- Grid is ready before running Jest
- Focused tests use an anchored regex when targeting one HTML file
- Sessions are cleaned after every run
- Snapshot updates are rerun without
--update npm run precommitpasses before opening the PR
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

