Skip to content

Remove playwright-core override and update acceptance test suite - #5

Merged
shyim merged 1 commit into
mainfrom
claude/admiring-galileo-ftiwmk
Jun 23, 2026
Merged

Remove playwright-core override and update acceptance test suite#5
shyim merged 1 commit into
mainfrom
claude/admiring-galileo-ftiwmk

Conversation

@shyim

@shyim shyim commented Jun 23, 2026

Copy link
Copy Markdown
Member

Summary

Simplified the Playwright configuration by removing the playwright-core override and updating the acceptance test suite dependency. This change allows the project to use the standard Playwright type resolution instead of relying on a shared playwright-core copy.

Key Changes

  • Updated @shopware-ag/acceptance-test-suite from ^12.6.0 to ^12.13.3
  • Removed the playwright-core version override from package.json that was pinning it to 1.60.0
  • Removed the associated comment explaining the override's purpose
  • Updated dashboard.page.ts to import Page and Locator types directly from @playwright/test instead of from the acceptance test suite
  • Removed the comment explaining the previous import strategy to avoid type clashes

Implementation Details

The previous setup required importing Playwright types from the acceptance test suite to ensure both the suite and @playwright/test used the same playwright-core copy, preventing type resolution conflicts. With the updated acceptance test suite version, this workaround is no longer necessary, allowing for a cleaner and more standard Playwright type import pattern.

https://claude.ai/code/session_01CUX2Soz8JvXDpBpaNxXG84

acceptance-test-suite 12.13.3 declares @playwright/test as a peerDependency
(shopware/acceptance-test-suite#649) instead of a direct dependency, so the
suite reuses the consumer's copy rather than pulling its own. That leaves a
single deduped playwright-core, making our manual override pin and the
suite-side type-import workaround redundant.

- bump @shopware-ag/acceptance-test-suite floor to ^12.13.3
- remove the playwright-core "overrides" pin
- import Page/Locator types from @playwright/test again

Verified: `npm ls playwright-core` shows one deduped 1.60.0 and `tsc --noEmit` passes.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CUX2Soz8JvXDpBpaNxXG84
@shyim
shyim marked this pull request as ready for review June 23, 2026 08:53
@shyim
shyim merged commit 26b8514 into main Jun 23, 2026
2 checks passed
@shyim
shyim deleted the claude/admiring-galileo-ftiwmk branch June 23, 2026 12:00
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