playwright-element-plus

Playwright helpers for testing Vue apps built with Element Plus: selects, date pickers, tables, toasts, uploads and more, without the usual timing and locator traps.
466
Install
npm install playwright-element-plus
Latest Version:0.1.1
License:MIT
Last Updated:Oct 7, 2026
Links: GitHub  ·  npm
Maintainer: paulfg

playwright-element-plus

Playwright helpers for Vue apps built with Element Plus. They deal with the things that trip up tests: dropdowns rendered outside the component, hidden checkbox inputs, toasts that stack, values that only commit on blur.

Not affiliated with Element Plus or Playwright.

Install

npm i -D playwright-element-plus

@playwright/test is a peer dependency. Install it in your project if you haven't.

Use

import { expect, test } from '@playwright/test'
import { message, selectOption } from 'playwright-element-plus'

test('pick a fruit', async ({ page }) => {
  await page.goto('/fruits')
  await selectOption(page, 'Fruit', 'Apple')
  await page.getByRole('button', { name: 'Save' }).click()
  await expect(message(page, 'Saved')).toBeVisible()
})

It works in ESM and CommonJS projects, and the types are included.

More

Supported versions

  • Element Plus 2.9 and later. Tested with 2.9.11, 2.13.7 and 2.14.7. A few behaviours differ between these; the tested versions table lists where.
  • @playwright/test: tested with 1.63.
  • Node.js 20.19+ or 22.12+.

License

MIT

Related Packages

untestutils

Recipe-based test harness for Vitest and Playwright — thin facade over @untestut...

6,052 1
env-attr-cleaner

Universal plugin to strip data-* attributes from production builds

1,846 0
@aegisrunner/nuxt

Nuxt module that attaches AegisRunner to your dev server — scan your localhost a...

0 2
@vuetify/testing-library-dom

Simple and complete DOM testing utilities that encourage good testing practices.

15,432 0
@element-plus/nuxt

Element Plus module for Nuxt

830,141 176

Version History

Version Released License
0.1.1 MIT
0.1.0 MIT
Pre-releases (1)
Version Released License
0.0.0-stage