Skip to content

fix: update versions test to handle multiple audit groups after #931#938

Closed
chrischrischris wants to merge 1 commit into
mainfrom
claude/dazzling-khayyam-3f4aba
Closed

fix: update versions test to handle multiple audit groups after #931#938
chrischrischris wants to merge 1 commit into
mainfrom
claude/dazzling-khayyam-3f4aba

Conversation

@chrischrischris
Copy link
Copy Markdown
Contributor

Summary

  • PR #931 changed formatVersions in helpers.js to keep audit entry groups separate when a labeled version boundary falls between them.
  • The Playwright test at test/e2e/tests/versions.spec.js was using a strict-mode locator (.da-version-entry.is-audit) that expected exactly one match, but the test scenario now produces two .is-audit entries — one for edits before "ver 1" and one for edits after.
  • Fixed by adding .first() to select the most recent audit group (the post-"ver 1" edits), which is what the test intends to verify.

Test plan

  • Playwright versions test passes in chromium, firefox, and webkit
  • No other version-related tests are affected

PR #931 changed formatVersions to keep audit entries in separate groups
when split by a labeled version boundary. The test now finds two
.is-audit elements (one before and one after 'ver 1'), causing a strict
mode violation. Use .first() to target the most recent audit group.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@aem-code-sync
Copy link
Copy Markdown

aem-code-sync Bot commented May 15, 2026

Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch.
In case there are problems, just click the checkbox below to rerun the respective action.

  • Re-sync branch
Commits

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.

1 participant