Skip to content

test: remove unused toolbar 4.x selectors - #282

Merged
lihbr merged 1 commit into
masterfrom
lh/remove-legacy-toolbar-selectors
Oct 15, 2026
Merged

lihbr merged 1 commit into
masterfrom
lh/remove-legacy-toolbar-selectors

Conversation

@lihbr

@lihbr lihbr commented Oct 5, 2026 •

Copy link
Copy Markdown
Member

AppPage.toolbar and AppPage.exitPreview use toolbar 4.x selectors that toolbar v5 (prismicio/prismic-toolbar#149) removes. No test uses them, so this removes them.

🤖 Generated with Claude Code


Note

Low Risk
Test-only deletion of unused helpers; no production or active E2E paths affected.

Overview
Removes dead Playwright AppPage helpers that targeted Prismic toolbar 4.x DOM (#prismic-toolbar-v2 .PreviewMenu) and the unused exitPreview() flow (close icon + assert toolbar gone). Those selectors break with toolbar v5, and nothing in the suite called them.

Also drops the unused expect import from @playwright/test. toolbarScript, toolbarIframe, preview navigation, and script param helpers are unchanged.

Reviewed by Cursor Bugbot for commit e583bd6. Bugbot is set up for automated code reviews on this repo. Configure here.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@lihbr
lihbr merged commit bc80faf into master Oct 15, 2026
15 checks passed
@lihbr
lihbr deleted the lh/remove-legacy-toolbar-selectors branch October 15, 2026 06:18
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