0.1.0 • Published 2 years ago

wp-playwright-utils v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

ℹ️ WP Playwright Test Utils

End-To-End (E2E) test utils for Playwright to be used in a WordPress environment.

The utilities included in this library are meant to be used together with a testing environment created via the @wordpress/env package.

✅ Requirements

  1. Playwright
  2. @wordpress/env

ℹ️ Installation

yarn add wp-playwright-utils --dev

📖 Utilities

loginUser

Performs log in with specified username and password.

Parameters:

ParameterTypeDescription
usernamestringString to be used as user credential
passwordstringString to be used as password credential

🤝 Contributing

Contributions are welcome from everyone. For major changes, please open an issue first to discuss what you would like to change.

🔖 License

Distributed under the MIT License. See LICENSE for more information.