Repository navigation
feat: add RobotActions as a device provider - #264
Open
krishtoautomate wants to merge 1 commit into
Open
krishtoautomate wants to merge 1 commit into
krishtoautomate wants to merge 1 commit into
Conversation
Runs tests on real devices attached to a RobotActions grid. The grid is a W3C WebDriver endpoint behind an auth proxy, so the provider is a session factory plus the two dashboard hooks appwright expects: - syncTestDetails -> POST /api/sessions/:id/result (name, pass/fail, failure reason) - static downloadVideo -> GET /api/sessions/:id/videos, streamed to the report from the grid URL (ROBOTACTIONS_API_URL overrides); never throws Auth is a Bearer header on every request rather than user/key: the proxy gates DELETE /session as well as POST /session, and the webdriver client only sends Basic credentials on createSession. buildPath must be an http(s) URL - the grid's Appium nodes download the build themselves and cannot see a file on the test runner. Verified end to end against a grid: Wikipedia sample passes on a Pixel 4 XL, a deliberate failure reports failed with its reason, video attaches to the Playwright report.
🦋 Changeset detectedLatest commit: c9b9504 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
This branch has not been deployed
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 RobotActions as a device provider (
provider: "robotactions"), alongside BrowserStack and LambdaTest.A RobotActions grid is a W3C WebDriver endpoint behind an auth proxy, so the provider is a session factory plus the two dashboard hooks appwright expects:
syncTestDetails→POST /api/sessions/:id/result(test name, pass/fail, failure reason)static downloadVideo→GET /api/sessions/:id/videos, streamed into the Playwright report; never throws, skipped when unavailableDesign notes:
user/keyon the URL — the proxy gatesDELETE /session/:idas well asPOST /session, and thewebdriverclient only sends Basic credentials on createSession.buildPathmust be anhttp(s)://URL: the grid's Appium nodes download the build themselves and cannot see a file on the test runner.udid,osVersion,orientation,testSuiteand extra Appiumcapabilitiesare optional.Config:
ROBOTACTIONS_GRID_URL+ROBOTACTIONS_TOKEN. Docs added toREADME.mdanddocs/config.md; changeset included.Test plan
npm run build,npm run lint,vitest(7 new unit tests for config/capabilities/video handling)Unrelated, but worth knowing:
@playwright/test1.60+ rejectsuse.devicefor every provider (config validation change). This PR doesn't touch the pin; happy to open a separate one.