承接 drunomics/playwright-drupal-utils 相关项目开发

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

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

drunomics/playwright-drupal-utils

最新稳定版本:1.4.0

Composer 安装命令:

composer require drunomics/playwright-drupal-utils

包简介

Provides commands and helpers for testing with playwright.

README 文档

README

Dependencies:

  • Drush

Overview:

The package provides:

  • Various drush commands in the PlaywrightDrushCommands class useful for testing with playwright. The class is autoloaded and ready to use when package is installed.

  • Test helpers and commands

    • The functions in ./tests/helpers/drupal-commands are reusable helpers for communicating with drupal API in tests.

    • ./tests/helpers/ldp-test holds a fixture, an extension of playwright test which carries additional variables suitable for testing decoupled projects with diverse origins.

    • ./tests/helpers/test-methods is a collection of reusable and often used helper functions, for example logging in and out of the site, headers check etc.

    • ./tests/helpers/a11y-helper is a helper for running accessibility checks using axe-core.

Setup

  • Add this package to your project's dev dependencies.
  • Add package type "playwright-helper" to "installer-types" section of your composer.json
  • Adjust the package installation location by adjusting installer-paths in your composer.json. The package needs to be installed in the directory with your playwright installation (location of your package.json).
  • Require the helpers in your test files e.g. const helpers = require("../playwright-drupal-utils/tests/helpers/test-methods");

License

  • Drush Extension is licensed under GPLv3 or later
  • JavaScript code is licensed under MIT

Credits

developed by drunomics GmbH, hello@drunomics.com Please refer to the commit log individual contributors.

统计信息

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

GitHub 信息

  • Stars: 4
  • Watchers: 8
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2022-11-18