npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@atomic-testing/component-driver-primevue-v4

v0.98.0

Published

Component driver for PrimeVue 4 components (Vue 3)

Downloads

502

Readme

@atomic-testing/component-driver-primevue-v4

Component drivers for PrimeVue 4 (Vue 3). Component drivers expose simple APIs for unit tests or end-to-end tests to interact with PrimeVue-based components—reading state and driving actions—so test engineers focus on test flows instead of the component internals.

The problem

PrimeVue components are styled by swappable theme presets (Aura, Lara, Nora, …) and consumer design tokens, so theme class names are not stable test anchors. PrimeVue is accessibility-first: it publishes a per-component WCAG 2.1 AA accessibility contract (roles, aria-* states) and stamps its own structural pass-through markers on every part. The stable anchors, in priority order, are:

  1. role + ARIA state per PrimeVue's published per-component accessibility contract (role="combobox" + aria-expanded on Select, role="switch" + aria-checked on ToggleSwitch, …) — the a11y contract is the API these drivers test against.
  2. PrimeVue-owned structural attributesdata-pc-name / data-pc-section, the documented pass-through/theming markers naming each component and part (the analogue of Radix's data-state tier).
  3. Never theme/utility classes.

The solution

The drivers in this package locate PrimeVue parts by those stable anchors and expose high-level interactions. Combined with the Vue 3 adapter (@atomic-testing/vue-3), the same scene definitions run across DOM (jsdom) and end-to-end (Playwright) tests.

Target package & version pin

This driver targets PrimeVue 4 and is declared as a peer dependency pinned to ^4.0.0: consumers bring their own PrimeVue. PrimeVue 4 renamed several components this package covers (DropdownSelect, InputSwitchToggleSwitch, TabViewTabs), so the v4 pin is also a DOM-contract pin — PrimeVue 3 renders different roots and markers. PrimeVue requires Vue 3, so test with @atomic-testing/vue-3 to match your app.

Installation

npm install @atomic-testing/core @atomic-testing/vue-3 \
  @atomic-testing/component-driver-html @atomic-testing/component-driver-primevue-v4 \
  primevue --save-dev

Refer to the documentation for usage patterns and examples.

Drivers

Drivers land in waves (see the umbrella issue #1018); this table grows with each wave.

| Driver | PrimeVue component | Notes | | --------------------------------------------- | ------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | | ButtonDriver | Button | Native <button>; getLabel reads the data-pc-section="label" span so add-ons (badge) don't leak into the label; native disabled. | | InputTextDriver | InputText | The root IS a native <input> — full HTMLTextInputDriver surface, incl. isError via aria-invalid. | | CheckboxDriver | Checkbox | Real (visually hidden) native input: isSelected/clicks/disabled/required ride it. Covers binary and array-value modes. | | RadioButtonDriver, RadioButtonGroupDriver | RadioButton | Native radio input per item; the group driver roots at a consumer container and selects by value (PrimeVue has no group component). | | ToggleSwitchDriver | ToggleSwitch (v4 rename of InputSwitch) | Hidden native checkbox with role="switch"; reads the native checked property, the ground truth behind the aria-checked mirror. | | SliderDriver | Slider | No native range input — aria reads on the role="slider" handle, keyboard-driven setValue, dragBy for E2E-only positional checks. | | SelectDriver | Select (v4 rename of Dropdown) | Label-based selection (PrimeVue renders no option value in the DOM); the teleported listbox is pinned via the combobox's aria-controls id link. | | DialogDriver | Dialog | ContainerDriver with a content scene; portal re-root on role="dialog"; title via aria-labelledby; close via header button or Escape. | | MenuDriver | Menu (popup mode) | Portal re-root on data-pc-name="menu"; items iterated with childListHelper (separators share the <li> tag); activation clicks the item link. | | TabsDriver, TabDriver | Tabs (v4 replacement for TabView) | ARIA tabs pattern (role="tab", aria-selected, aria-controls → panel id); unselected panels stay mounted, hidden. | | DataTableDriver, DataTableRowDriver | DataTable + Column | Real <table> with role semantics; full-count row/cell iteration via childListHelper. v1 covers static read-only tables only. |

Teleported overlays (appendTo)

PrimeVue overlays (Select panel, Dialog, Menu popup, …) Teleport to document.body by default via the uniform appendTo prop. The overlay drivers follow the MUI portal re-root recipe — the portalled surface is located document-rooted ('Root'-relative), not under the in-tree trigger. See the portals & overlays guide. Non-default appendTo="self" is not covered by the v1 drivers.

For more in-depth information, visit https://atomic-testing.dev.