Browser testing skills: TestBox BrowserSpec and ColdBox BrowserTestCase - #16
Merged
Merged
Conversation
…rTestCase New skills: - testbox/browser-testing: BrowserSpec (BoxLang only, skips elsewhere), installing bx-playwright and Chromium, browserProfile/baseURL annotations, browse() with one isolated page per argument, this.playwright(), browserAvailable(), the 9 browser matchers and their not forms, automatic screenshot/trace/video attachments, attach(), retries (spec, bundle, xUnit method, global), --failed, --web-server, CI and debugging with bxPlaywright show-trace. - coldbox/testing-browser: BrowserTestCase vs BaseTestCase, a full spec, routeURL/visitRoute/assertRouteIs (params, name@module, module:name), loginAs/logout with moduleSettings.browserTesting and its security model (testing environment only, token in X-Browser-Testing-Token compared in constant time, GET only, 404 otherwise), running the app server and CI. Pointers added to testbox runners (--retries, --failed, --web-server*), reporters (attachments and attempts), bdd and unit (retries, attach()), expectations (browser matchers) and coldbox testing-base-classes (BrowserTestCase). README catalog updated; plugin manifests bumped to 1.1.0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UU9aLossoYUkQNwubnitBi
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds browser testing skills for TestBox
BrowserSpecand ColdBoxBrowserTestCase(BoxLang + bx-playwright). 13 files:New skills
testbox/browser-testing/SKILL.md: BrowserSpec (BoxLang only, skips elsewhere), installing bx-playwright and Chromium,browserProfile/baseURLannotations,browse()with isolated pages,this.playwright(),browserAvailable(), the 9 browser matchers, automatic screenshot/trace/video attachments,attach(), retries,--failed,--web-server, CI and debugging.coldbox/testing-browser/SKILL.md: BrowserTestCase vs BaseTestCase,routeURL()/visitRoute()/assertRouteIs(), test-onlyloginAs()/logout()via the BrowserTesting module and its security model, running the app server and CI.Pointers in existing skills
testbox/runners(--retries,--failed,--web-server*),testbox/reporters(attachments and attempts),testbox/bddandtestbox/unit(retries,attach()),testbox/expectations(browser matchers),coldbox/testing-base-classes(BrowserTestCase).Catalog and manifests
README.mdrows for both new skills..claude-plugin/marketplace.json,.claude-plugin/plugin.json,.cursor-plugin/plugin.json,.grok-plugin/plugin.jsonbumped 1.0.0 to 1.1.0.Dependencies
attach(), retries,--failed,--web-server)routeURL/visitRoute/assertRouteIs, test-onlyloginAs/logoutvia the BrowserTesting module)Matches the merged ortus-boxlang/skills#11.
Validation
python3 -m json.tool.🤖 Generated with Claude Code
https://claude.ai/code/session_018xQZ2gYtfrpUne3esucPND
Generated by Claude Code