Skip to content

test(e2e): add Playwright coverage for Collection Docs pagination and navigation - #92

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

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

Conversation

@lokesh-bruno

Copy link
Copy Markdown

Ref BRU-4674

Description

Adds E2E coverage for Collection Docs pagination and navigation in routing.spec.ts. The tests use the existing ?fixture=folders collection. No new fixture was added.

TC-5218 and TC-5219 stay manual. They reorder a request or move it to another folder in Bruno and then regenerate the docs. The suite checks the current folders collection only.

The coverage includes:

  • Next and Previous updating the page and the address-bar hash, with exactly one active sidebar item.
  • The first page showing only Next, and the last page showing only Previous, with the neighbor page name on the control.
  • The Overview hash being empty or exactly #/.
  • Editing the hash moving to that page without a full reload, with the sidebar highlight following.
  • Browser Back and Forward keeping the URL, page content, and sidebar highlight together.
  • Three rapid Next clicks landing on the last target, with the hash and sidebar highlight in sync.
  • A distant sidebar jump after Next showing only that page.
  • Next and Previous staying fully inside the viewport at desktop (1280), tablet (768), and mobile (375), with no horizontal overflow.

@changeset-bot

changeset-bot Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 6122ad5

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

Comment thread packages/bruno-api-docs/e2e/tests/routing/routing.spec.ts Outdated
Comment thread packages/bruno-api-docs/e2e/tests/routing/routing.spec.ts Outdated
@arpit-bruno
arpit-bruno merged commit 781baf4 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