Skip to content

test(e2e): add Playwright coverage for the Collection Docs top bar - #91

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

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

Conversation

@lokesh-bruno

Copy link
Copy Markdown

Ref BRU-4631

Description

Adds E2E coverage for the Collection Docs top bar so the header controls, Show vars, and environment switching are checked in Playwright. Edge cases use ?fixture=general and the general-* collections. An unknown fixture name shows an error instead of the sample collection.

The coverage includes:

  • Search, Show vars, and the environment dropdown on the desktop bar.
  • Header controls staying visible without overlap, including the theme toggle.
  • The bar staying put while Overview, a request, and Environments scroll.
  • The environment menu listing only the included environments, with the first one selected.
  • Selecting an environment updating the dropdown label, and the label staying in sync across a couple of switches.
  • Show vars and the selected environment surviving refresh and navigation.
  • A single environment in the dropdown, and "No environments" when none are included.
  • A very long collection name truncating at tablet width without covering the other controls.
  • Hiding the version in the bar and on Overview when the collection has none.
  • Show vars resolving {{host}} in the URL, headers, body, and snippet, and putting the placeholders back when turned off.
  • Secret values staying masked on those same surfaces.
  • Show vars staying consistent across toggles.
  • Resolved values updating on the same request and the next request without a reload.
  • Resolved values staying in sync across a couple of environment switches, and after refresh and navigation.
  • A variable missing from the active environment staying unresolved.
  • Special-character values rendering as text.
  • A single environment still resolving its variables.
  • An empty Environments page when none are included.

@changeset-bot

changeset-bot Bot commented Sep 23, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 5b22cfc

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

@lokesh-bruno lokesh-bruno changed the title Top bar coverage test(e2e): add Playwright coverage for the Collection Docs top bar Sep 23, 2026
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