Skip to content

test(e2e): expand Playwright coverage for req and bru scripting APIs - #79

Open
lokesh-bruno wants to merge 1 commit into
usebruno:release/v0.4.0from
lokesh-bruno:scripting-coverage
Open

lokesh-bruno wants to merge 1 commit into
usebruno:release/v0.4.0from
lokesh-bruno:scripting-coverage

Conversation

@lokesh-bruno

Copy link
Copy Markdown

Description

Adds E2E coverage for the req and bru scripting APIs in the docs playground to verify that supported methods and playground-specific stub warnings work correctly when run through the tests script in the browser.

The coverage includes:

  • req reads and mutators (getName, setUrl, setMethod, setHeaders, deleteHeader / deleteHeaders, getBody / setBody, timeout helpers, getExecutionMode, disableParsingResponseJson) plus fuller headerList coverage (upsert, find, filter, indexOf, reduce, toJSON, populate, repopulate, assimilate, clear).
  • bru environment and variable helpers (getEnvName, env get/set/delete, collection var has/delete/deleteAll, getFolderVar / getRequestVar / getSecretVar, deleteVar / deleteAllVars).
  • bru utilities (sleep, sendRequest, getTestResults, getAssertionResults, runRequest for an invalid path, utils.minifyXml).
  • Playground stub warnings for unsupported desktop APIs (runner.*, cookies, OAuth helpers, global env vars, cwd, getProcessEnv, etc.).

@changeset-bot

changeset-bot Bot commented Sep 11, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: b101e53

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant