承接 quadraecom/pest-plugin-selectors 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

quadraecom/pest-plugin-selectors

最新稳定版本:v1.5.1

Composer 安装命令:

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

包简介

Add CSS selector-based testing capabilities to Pest

README 文档

README

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! 🙌🏻

统计信息

  • 总下载量: 1.83k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-06-22