New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

quadraecom/pest-plugin-selectors

Add CSS selector-based testing capabilities to Pest
2,035 1

Larablocks Analysis

quadraecom/pest-plugin-selectors works with Laravel 8 and 9 (latest release v1.5.1, Jun 2, 2023), all past end of life (the last on Feb 6, 2024): no more fixes, even for security.

Recommendation checks

Not advised

Not advised: no release or commit in over 2 years.

  • No release or commit in over 2 years
  • Supports only Laravel 8 and 9, past end of life since Feb 6, 2024
  • No release in the last 12 months (last: Jun 2, 2023)
  • 0 downloads a month (needs 10,000)
  • 1 GitHub star (needs 100)

State

Likely abandoned
  • No release or commit in over 2 years.
  • Last stable release: Jun 2, 2023.
  • No releases in the last 12 months.
  • First released: Jun 23, 2022.
  • 0 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Dec 2, 2026.

Install
composer require quadraecom/pest-plugin-selectors
Latest Version:v1.5.1
PHP:^7.4 || ^8.0
Laravel:8 · 9
License:MIT
Last Updated:Jun 2, 2023
Links: GitHub  ·  Packagist
Maintainer: squatto

CSS Selector Plugin for Pest

Add CSS selector-based testing capabilities to Pest

Install

composer require quadraecom/pest-plugin-selectors --dev

Usage

This package adds these methods:

getSelectorMatches(string $selector): DOMNodeList

This package adds these assertions:

assertSelectorExists(string $selector)
assertSelectorNotExists(string $selector)
assertSelectorCount(string $selector, int $count)
assertSelectorContains(string $selector, string $value)
assertSelectorsAllContain(string $selector, string $value)
assertSelectorEquals(string $selector, string $value)
assertSelectorsAllEqual(string $selector, string $value)
assertSelectorNotEquals(string $selector, string $value)
assertSelectorsAllNotEqual(string $selector, string $value)
assertSelectorAttributeExists(string $selector, string $attribute)
assertSelectorAttributeNotExists(string $selector, string $attribute)
assertSelectorAttributeEquals(string $selector, string $attribute, $value)
assertSelectorAttributeNotEquals(string $selector, string $attribute, $value)

See tests/Selectors.php for example usage.


If you want to start testing your application with Pest, visit the main Pest Repository.

Package Author

This package was created and is maintained by Quadra, Inc.

The test assertions were inspired by code written by Liam Hammett (@ImLiam) that can be found in this post on his blog. Thank you, Liam! 🙌🏻

Alternatives to quadraecom/pest-plugin-selectors

pestphp/pest

The elegant PHP Testing Framework.

115,104,770 11,795
orchestra/pest-plugin-testbench

Pest plugin for Testbench

93,883 5
erikgaal/pest-plugin-sharding

Pest Plugin to split tests into multiple runs

616,586 2
nekofar/pest-plugin-slim

The Pest Slim Plugin

18,483 5
alleyinteractive/pest-plugin-wordpress

WordPress Pest Integration

6,140 27

Version History

Version Released PHP Laravel License
v1.5.1 ^7.4 || ^8.0 ^8.0 || ^9.0 MIT
v1.5.0 ^7.4 || ^8.0 ^8.0 || ^9.0 MIT
v1.4.0 ^7.4 || ^8.0 ^8.0 || ^9.0 MIT
v1.3.0 ^7.4 || ^8.0 ^8.0 || ^9.0 MIT
v1.2.0 ^7.4 || ^8.0 ^8.0 || ^9.0 MIT