Angular Material MDC Testing Migration

•
2
•

Automates the update of Angular Material testing harnesses and DOM selectors to ensure compatibility with MDC-based components in version 15 and above.

This skill streamlines the complex process of migrating Angular Material tests during the v15 MDC (Material Design Components) transition by identifying and repairing tests that rely on legacy DOM structures. It automatically replaces fragile internal selectors with robust testing harnesses, updates assertions to match the new MDC-aligned class names, and provides a structured workflow for reviewing visual regression changes. By managing the technical debt associated with UI library upgrades, it ensures that unit, integration, and E2E test suites remain reliable and maintainable after major framework updates.

Características Principales

01Generates a comprehensive inventory of remaining test risks
022 GitHub stars
03Manages visual regression and screenshot test baseline reviews
04Identifies fragile CSS selectors targeting legacy Material internals
05Updates DOM-based assertions to match Material v15 structures
06Migrates legacy testing harnesses to MDC-compatible versions

Casos de Uso

01Refactoring E2E suites (Cypress, Playwright) that query internal Material component classes
02Automating the migration of Component Dev Kit (CDK) harnesses to their MDC equivalents
03Upgrading Angular Material from v14 to v15+ where tests are failing due to DOM changes