@wpsyntex/e2e-test-utils exposes a REST-oriented API for Polylang E2E tests, built on Gutenberg’s requestUtils and Playwright.
- Language management: list, get, create, and delete languages (including bulk delete).
- Settings: read and update Polylang settings, or reset them to defaults.
- Taxonomies: list terms, fetch by slug, and delete all terms in a taxonomy.
- XLIFF export: fill the bulk export form and match exported filenames with locale-aware regex helpers.
- Downloads: trigger file downloads from the UI and read downloaded files as strings.
- Users: create translator users and switch between users in tests.
- Setup:
globalSetupfor Playwright global test initialization.
All helpers follow the same patterns as WordPress E2E utilities and are meant to be composed in Playwright specs.