Skip to content

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

Merged
arpit-bruno merged 2 commits into
usebruno:release/v0.4.0from
lokesh-bruno:top_bar_Coverage
Sep 30, 2026
Merged

arpit-bruno merged 2 commits into
usebruno:release/v0.4.0from
lokesh-bruno:top_bar_Coverage

Conversation

@lokesh-bruno

@lokesh-bruno lokesh-bruno commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

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.
  • 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

🦋 Changeset detected

Latest commit: 76dc32d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 0 packages

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

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

@lokesh-bruno lokesh-bruno changed the title Top bar coverage test(e2e): add Playwright coverage for the Collection Docs top bar Sep 23, 2026

@arpit-bruno arpit-bruno left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this test fails on the latest release/v0.4.0.
The docs header now no longer shows the env switcher when a collection has no envs so there is nothing to check here.
@sundram-bruno can you take a look since this changed in your PR?

Comment thread packages/bruno-api-docs/e2e/tests/layout/page-header.spec.ts Outdated
@arpit-bruno
arpit-bruno merged commit 15cf1d7 into usebruno:release/v0.4.0 Sep 30, 2026
7 checks passed
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.

2 participants