Skip to content

test: add Playwright coverage and test ids for CpsInfoCircleComponent - #813

Open
fateeand wants to merge 2 commits into
masterfrom
783-cover-info-circle-component-with-playwright-tests
Open

test: add Playwright coverage and test ids for CpsInfoCircleComponent#813
fateeand wants to merge 2 commits into
masterfrom
783-cover-info-circle-component-with-playwright-tests

Conversation

@fateeand

Copy link
Copy Markdown
Collaborator

Summary

  • Added Playwright E2E coverage for CpsInfoCircleComponent.
  • Added data-testid="cps-info-circle" to the library template's inner <cps-icon> element (the actual interactive target the tooltip directive's host listeners are bound to).
  • Added a demo example ("Persistent info circle", with an <a href="#">Learn more</a> in its tooltip text.

TODO: Merge with feat: add test id to info circle component to generate a release


Release notes:

  • added Playwright E2E coverage for cps-info-circle component
  • added test id to cps-info-circle component

Copilot AI review requested due to automatic review settings July 30, 2026 10:14
@fateeand
fateeand requested a review from lukasmatta as a code owner July 30, 2026 10:14
@fateeand fateeand linked an issue Jul 30, 2026 that may be closed by this pull request
@github-actions

github-actions Bot commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Coverage report for library

St.
Category Percentage Covered / Total
🟡 Statements 78.39% 6209/7921
🟡 Branches 67.88% 2864/4219
🟡 Functions 79.27% 1170/1476
🟡 Lines 79.44% 5805/7307

Test suite run success

2438 tests passing in 76 suites.

Report generated by 🧪jest coverage report action from 9989824

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds end-to-end validation and stable selectors around CpsInfoCircleComponent behavior in the composition app, including coverage for hover/focus behavior, positioning, accessibility, and persistent tooltips.

Changes:

  • Added data-testid="cps-info-circle" to the internal <cps-icon> element used as the tooltip trigger.
  • Extended the info-circle composition page with per-example data-testids and a new “Persistent info circle” demo.
  • Introduced a new Playwright spec covering tooltip visibility, focus behavior, positioning, accessible naming, and persistent-tooltip focus trapping.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
projects/cps-ui-kit/src/lib/components/cps-info-circle/cps-info-circle.component.html Adds a stable inner test id on the actual tooltip trigger element (cps-icon).
projects/composition/src/app/pages/info-circle-page/info-circle-page.examples.ts Adds a “Persistent info circle” example snippet for the docs/code preview.
projects/composition/src/app/pages/info-circle-page/info-circle-page.component.html Adds per-example data-testids and renders the new persistent tooltip example.
playwright/cps-ui-kit/components/cps-info-circle.spec.ts New E2E coverage for tooltip interactions, positioning, and accessibility behaviors.

Comment thread projects/composition/src/app/pages/info-circle-page/info-circle-page.examples.ts Outdated
@github-actions

github-actions Bot commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Playwright test results

passed  416 passed

Details

stats  416 tests across 13 suites
duration  14 minutes, 12 seconds
commit  9989824
info  For details, download the Playwright report

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.

Cover Info Circle component with Playwright tests

2 participants