3 Commits

Author SHA1 Message Date
862cc29457 various changes 2026-03-09 22:30:41 +00:00
f2033e45e7 refactor: enhance Playwright interpreter with comprehensive feature support
Implement production-grade PlaywrightTestInterpreter with:

Locator Strategies:
- test IDs (getByTestId)
- ARIA roles (getByRole with name matching)
- Labels (getByLabel)
- Placeholders (getByPlaceholder)
- Alt text (getByAltText)
- Titles (getByTitle)
- Text content (getByText)
- CSS selectors

Actions (25+):
- Navigation & History: navigate, waitForLoadState, reload, goBack, goForward
- Interaction: click, fill, select, hover, focus, blur, type, press
- Waits: waitForNavigation, waitForSelector, waitForURL, wait
- Input: keyboard shortcuts, mouse buttons, modifiers
- Scroll: scrollIntoViewIfNeeded, scroll by coordinates
- Screenshots: full page, element, comparison

Assertions (20+):
- Visibility: toBeVisible, toBeHidden
- State: toBeEnabled, toBeDisabled, toBeChecked, toBeEmpty, toBeEditable
- Content: toContainText, toHaveText
- Attributes: toHaveAttribute, toHaveClass, toHaveValue, toHaveCount
- Styling: toHaveCSS (complex style checks)
- Visual: toHaveScreenshot
- Viewport: toBeInViewport
- Page: toHaveURL, toHaveTitle
- Custom: custom JavaScript assertions

Error Handling:
- Detailed error messages with step context
- Type-safe step execution
- Validation of required fields
- Graceful fallbacks

Code Quality:
- TypeScript types for Page, Locator
- Class-based architecture
- Private methods with clear responsibilities
- Consistent naming conventions
- Comprehensive switch statements
2026-01-21 04:09:29 +00:00
5fc4550a16 fix: make E2E tests discoverable by Playwright
Refactored e2e/tests.ts to e2e/tests.spec.ts with:
- Synchronous file discovery using Node fs APIs
- Direct test registration inline (no imports of problematic modules)
- Simplified step interpreter for basic test actions
- Proper test.describe/test registration for Playwright

Tests are now discovered and executed. Some complex steps
not yet implemented, but core infrastructure works.
2026-01-21 04:03:44 +00:00