Hyva Playwright Test
Playwright test authoring guide for Hyvä Magento storefronts, covering Alpine.js selector and timing pitfalls.
- CCM score
- 67 of 100
- skills.sh installs
- 1.4K
- GitHub stars
- 86
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers strict-mode pitfalls from hidden Alpine
x-showelements, plus scoping rules, selector priority, and async assertion timing - Includes a Hyvä-versus-Luma selector map for pagination, filters, cart badge, messages, menus, and gallery images
- Enforces scoping flash messages to
#messagesand avoids:visibleandwaitForTimeout()in favor of web-first assertions - Designed for QA engineers writing e2e tests for Hyvä storefronts that use Alpine.js and Tailwind CSS
Install
$ npx -y skills add hyva-themes/hyva-ai-tools --skill hyva-playwright-test -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Writing Playwright Tests for Hyvä + Alpine.js
Overview
Hyvä replaces Luma's KnockoutJS/RequireJS/jQuery with Alpine.js + Tailwind CSS. Playwright's strict mode (rejects locators matching multiple elements) conflicts with Alpine.js DOM patterns where hidden elements exist throughout the page. This skill documents pitfalls and solutions discovered while writing Playwright tests for Hyvä storefronts.
The #1 Rule: Hidden Alpine Elements
Hyvä templates scatter elements like <div x-show="displayErrorMessage" class="message error"> throughout the DOM. These are invisible but present, so a bare selector like .message.error matches both hidden and visible instances, causing Playwright strict mode violations.
Always scope page-level messages to the #messages container:
// WRONG — matches hidden Alpine x-show elements throughout DOM
await expect(page.locator('.message.success')).toContainText('Added to cart');
await expect(page.locator('.message-error')).toContainText('Error');
Details
- Repository
- github.com/hyva-themes/hyva-ai-tools
- Categories
- Testing & QA, Frontend & UI Code
- First seen
- Jun 3, 2026
More from hyva-themes/hyva-ai-tools
All 12Similar to Hyva Playwright Test
More Testing & QAe2e-testing-patternswshobson/agents25.8K installsPractical E2E testing guidance for Playwright and Cypress covering selectors, flaky-test fixes, and debugging workflows.
playwrightmindrally/skills1.2K installsBest-practice guide for Playwright end-to-end tests, covering test structure, locators, assertions, and configuration.
e2e-testinghieutrtr/ai1-skills1.6K installsPlaywright E2E testing patterns for full-stack Python/React apps, covering page objects, selectors, waits, and auth reuse.
playwright-coretestdino-hq/playwright-skill1.2K installsOpinionated Playwright testing guide spanning 50 references for E2E, API, visual, accessibility, and debugging work.
webapp-testingvudovn/ag-kit334 installsWeb application testing guide covering E2E flows, Playwright setup, and deep route audits.
playwright-skilltestdino-hq/playwright-skill6.2K installsCurrent Playwright 1.64 guidance for writing, debugging, and scaling E2E, API, visual, and accessibility test suites.