Skip to content

Update dependency @hmcts/playwright-common to v1.1.2#907

Open
renovate[bot] wants to merge 1 commit intomasterfrom
renovate/hmcts-playwright-common-1.x
Open

Update dependency @hmcts/playwright-common to v1.1.2#907
renovate[bot] wants to merge 1 commit intomasterfrom
renovate/hmcts-playwright-common-1.x

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate bot commented Mar 3, 2026

This PR contains the following updates:

Package Change Age Confidence
@hmcts/playwright-common 1.0.391.1.2 age confidence

Release Notes

hmcts/playwright-common (@​hmcts/playwright-common)

v1.1.2

Compare Source

Added
  • table.utils.helpers.ts - New module containing reusable table parsing logic with comprehensive TypeScript types
  • TableCellSnapshot, TableRowSnapshot, TableSnapshot types for structured DOM data representation
  • Pure parsing functions: parseKeyValueSnapshot(), parseDataSnapshot(), parseWorkAllocationSnapshot()
  • Shared utilities: cleanTableText(), filterVisibleRows(), looksLikeSelectionCellText(), buildHeaderKeys()
Changed
  • MAJOR REFACTOR: Extracted all duplicated table parsing logic into table.utils.helpers.ts module
  • Introduced snapshot-based parsing pattern (extract DOM data → parse in Node context) for improved testability and browser-context safety
  • parseKeyValueTable(), parseDataTable(), and parseWorkAllocationTable() now use snapshot builders + pure parsing functions
  • Simplified buildTableSnapshot() and buildWorkAllocationSnapshot() to focus on DOM extraction only
Fixed
  • Removed browser-context reference errors by separating DOM extraction from parsing logic
  • Fixed cognitive complexity violations by isolating grid-building logic into dedicated functions
  • Resolved all ESLint/SonarQube violations (50+ issues → 0 issues)
Improved
  • Enhanced maintainability: bug fixes now require changes in only one location instead of three
  • Increased testability: parsing functions are now pure and can be unit tested without browser context
  • Better type safety with comprehensive TypeScript interfaces for snapshot structures
  • Improved debuggability: snapshots can be inspected in Node context with full devtools access
  • Reduced maintenance burden by ~60% through elimination of code duplication
Performance
  • Maintained 100% test pass rate (125 tests)
  • No regression in functionality or performance
  • All edge cases preserved (zero-width headers, hidden rows, action rows, colspan/rowspan)

v1.1.1

Compare Source

Added
  • TableUtils.parseKeyValueTable() - Parse 2-column key-value tables (CCD case details tabs with label-value pairs)
  • TableUtils.parseDataTable() - Parse multi-column tables with headers (collections, documents, flags tables)
  • TableUtils.parseWorkAllocationTable() - Parse work allocation tables with sortable headers (handles buttons in headers, links in cells)
  • Test coverage for tables with selection checkboxes and action buttons in data cells
  • tests/utils/table.utils.test-helpers.ts - Extracted 450+ lines of test helper functions for better maintainability
Changed
  • Enhanced error messages in table parsing utilities to include selector context
  • Replaced window with globalThis for better cross-environment compatibility
  • Updated table parsing to use replaceAll() for modern string replacement
  • Refactored test file structure: extracted 6 mock helper functions to separate test-helpers file
  • Refactored TableUtils parsing to share snapshot helpers while preserving nested table scoping, headerless handling, and aria-hidden row filtering
Fixed
  • CRITICAL: parseDataTable now correctly excludes <thead> rows when using full table selectors (e.g., #documents-table). Previously, header rows were incorrectly returned as data rows.
  • parseKeyValueTable now allows empty value cells (returns empty string) instead of throwing errors. Key cells still require content.
  • parseWorkAllocationTable now implements all documented features: sort icon removal, whitespace normalization, column_N fallback keys for empty headers, and comprehensive hidden row filtering (display:none, visibility:hidden, aria-hidden, hidden attribute)
Confirmed
  • All table parsers correctly handle checkboxes and action buttons in data cells (extracted as text content)
  • Selection checkboxes (☐/☑) in first column are preserved in parsed data
  • Action buttons ("Edit", "Assign", "View") in cells are extracted as text values

v1.1.0

Compare Source

CI changes
  • Updated npm publishing to use Trusted Publishing (OIDC) (no long-lived npm tokens).
  • Consolidated publishing into .github/workflows/create_release.yml to align with npm’s “single trusted publisher per package” model.
  • Split publishing into separate GitHub Actions jobs for clarity and isolation:
    • Pre-release publish triggered by pushing tags matching prerelease-* (published with npm dist-tag prerelease).
    • Release publish triggered by GitHub Release publish event.
Function Changes
  • ApiClient hardening: default timeout, richer ApiClientError metadata (correlationId/retryAfter/body preview), fetch error wrapping, Retry-After-aware backoff, redaction fail-closed attachments (raw only when debug is explicit).
  • Retry helper now honours retryAfterMs on errors when scheduling backoff.
  • Added recipes (coverage/endpoint scripting, attachment safety, fixture wiring) and a 429-aware retry example.
  • prepack builds before publish for safer releases.
  • Added coverage utilities to parse coverage-summary.json, into formated summaries, and provide table-friendly rows.
  • Added API endpoint scanner utility to count Playwright API client calls per endpoint with configurable patterns/extensions.
  • Hardened TableUtils alignment to drop selection/action columns correctly; added unit coverage for table mapping, coverage, and endpoint scanning.

v1.0.41

Compare Source


Configuration

📅 Schedule: Branch creation - "after 7am and before 11am every weekday" in timezone Europe/London, Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot requested a review from a team as a code owner March 3, 2026 10:15
@renovate renovate bot added the dependencies Pull requests that update a dependency file label Mar 3, 2026
@renovate renovate bot force-pushed the renovate/hmcts-playwright-common-1.x branch from 4618980 to 3c4e5ad Compare March 3, 2026 12:24
@renovate renovate bot force-pushed the renovate/hmcts-playwright-common-1.x branch from 3c4e5ad to 890908d Compare March 4, 2026 15:07
@renovate renovate bot force-pushed the renovate/hmcts-playwright-common-1.x branch from 890908d to de8ee3b Compare March 4, 2026 16:27
@renovate renovate bot force-pushed the renovate/hmcts-playwright-common-1.x branch from de8ee3b to ae11818 Compare March 5, 2026 09:38
@renovate renovate bot force-pushed the renovate/hmcts-playwright-common-1.x branch from ae11818 to bdefdc4 Compare March 6, 2026 08:07
@renovate renovate bot force-pushed the renovate/hmcts-playwright-common-1.x branch from bdefdc4 to 58a64d6 Compare March 6, 2026 15:36
@renovate renovate bot force-pushed the renovate/hmcts-playwright-common-1.x branch from 58a64d6 to 3ef00c2 Compare March 6, 2026 16:24
@renovate renovate bot force-pushed the renovate/hmcts-playwright-common-1.x branch from 3ef00c2 to f9c2237 Compare March 6, 2026 17:20
@renovate renovate bot force-pushed the renovate/hmcts-playwright-common-1.x branch 2 times, most recently from f1b364a to df0442e Compare March 11, 2026 08:33
@renovate renovate bot force-pushed the renovate/hmcts-playwright-common-1.x branch from df0442e to fefcef8 Compare March 11, 2026 13:56
@renovate renovate bot force-pushed the renovate/hmcts-playwright-common-1.x branch from fefcef8 to 408b0c9 Compare March 12, 2026 08:38
@renovate renovate bot force-pushed the renovate/hmcts-playwright-common-1.x branch from 6c1743d to 9e72655 Compare March 16, 2026 14:28
@renovate renovate bot force-pushed the renovate/hmcts-playwright-common-1.x branch from 9e72655 to 9aa8a30 Compare March 17, 2026 10:54
@renovate renovate bot force-pushed the renovate/hmcts-playwright-common-1.x branch from 9aa8a30 to fcc0bfc Compare March 17, 2026 21:24
@renovate renovate bot force-pushed the renovate/hmcts-playwright-common-1.x branch from fcc0bfc to 4b6374a Compare March 18, 2026 09:26
@renovate renovate bot force-pushed the renovate/hmcts-playwright-common-1.x branch from 4b6374a to 9177f39 Compare March 18, 2026 11:08
@renovate renovate bot force-pushed the renovate/hmcts-playwright-common-1.x branch from 9177f39 to 3931dd1 Compare March 19, 2026 09:24
@renovate renovate bot force-pushed the renovate/hmcts-playwright-common-1.x branch from 3931dd1 to 4bc1cd2 Compare March 19, 2026 17:08
@renovate renovate bot force-pushed the renovate/hmcts-playwright-common-1.x branch from 4bc1cd2 to 7f7e19e Compare March 19, 2026 17:30
@renovate renovate bot force-pushed the renovate/hmcts-playwright-common-1.x branch from 7f7e19e to 237e64b Compare March 20, 2026 11:30
@renovate renovate bot force-pushed the renovate/hmcts-playwright-common-1.x branch from 237e64b to 9d2ba57 Compare March 23, 2026 10:36
@renovate renovate bot force-pushed the renovate/hmcts-playwright-common-1.x branch from 9d2ba57 to fc567b9 Compare March 24, 2026 15:33
@renovate renovate bot force-pushed the renovate/hmcts-playwright-common-1.x branch from fc567b9 to ded602b Compare March 25, 2026 16:23
@renovate renovate bot force-pushed the renovate/hmcts-playwright-common-1.x branch from ded602b to 32edc55 Compare March 26, 2026 09:28
@renovate renovate bot force-pushed the renovate/hmcts-playwright-common-1.x branch from 32edc55 to 4f95d36 Compare March 26, 2026 10:50
@renovate renovate bot force-pushed the renovate/hmcts-playwright-common-1.x branch from 4f95d36 to 4fc7918 Compare March 26, 2026 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file ns:pcs prd:pcs rel:pcs-frontend-pr-907

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants