Dev - #2860
Merged
Merged
Conversation
Extends the existing selector-contract scanner with a syntaxKind classification (css vs xpath) and a new selector-diff-report.mjs that compares the current tree's selector registry against the committed baseline on origin/main, flagging any selector that regressed (e.g. matched -> missing) since the base. For unambiguous matched -> missing regressions it proposes a fix by locating the removed identifying token at the baseline and restoring it in the current file; --apply writes only the unambiguous fixes to disk, never commits or pushes, and never touches ambiguous cases. New npm scripts: selectors:report, selectors:diff, selectors:fix, selectors:apply. Adds a Claude Code skill and README documenting the whole workflow, and commits cypress/selectors/registry.json as the tracked baseline these commands compare against.
extractSelectors() and applicationIndex() previously walked the raw filesystem, which also picked up local untracked scratch files (e.g. chefs-api-submission-with-attachment.cy.ts and chefs-api-submission-with-pdf-pptx-attachments.cy.ts, never committed on any branch). Those leaked into usedBy/applicationMatches in the committed baseline, making it internally inconsistent for anyone who doesn't happen to have those same untracked files on disk. Both scans now list candidate files via `git ls-files` instead of fs.readdirSync, falling back to the old filesystem walk only if git itself is unavailable. Regenerated registry.json: 365 -> 360 selectors, with a few matched -> missing shifts where the only prior evidence was in an untracked application-source file.
Add Cypress selector contract baseline diff and auto-fix tooling
feature/AB#34135-InsantMessaging-bundling issue
…rovments AB#34253 Improve Nginx log_format gzip_types security headers
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



No description provided.