Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fluentci-io/playwright-plugin
CI/CD Plugin for Playwright
https://github.com/fluentci-io/playwright-plugin
continuous-delivery continuous-integration e2e-testing webassembly
Last synced: about 1 month ago
JSON representation
CI/CD Plugin for Playwright
- Host: GitHub
- URL: https://github.com/fluentci-io/playwright-plugin
- Owner: fluentci-io
- License: mit
- Created: 2024-06-13T18:18:59.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-08-06T14:21:39.000Z (5 months ago)
- Last Synced: 2024-08-06T16:38:12.738Z (5 months ago)
- Topics: continuous-delivery, continuous-integration, e2e-testing, webassembly
- Language: Rust
- Homepage:
- Size: 8.79 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Playwright Plugin
[![fluentci pipeline](https://shield.fluentci.io/x/playwright)](https://pkg.fluentci.io/playwright)
[![ci](https://github.com/fluentci-io/playwright-plugin/actions/workflows/ci.yml/badge.svg)](https://github.com/fluentci-io/playwright-plugin/actions/workflows/ci.yml)This plugin sets up your CI/CD pipeline with [Playwright](https://playwright.dev/).
## 🚀 Usage
Add the following command to your CI configuration file:
```bash
fluentci run --wasm playwright install
fluentci run --wasm playwright test
```## Functions
| Name | Description |
| ------- | --------------------------------------------------------------- |
| install | ensure browsers necessary for this version of Playwright are installed |
| install_deps | install dependencies necessary to run browsers (will ask for sudo permissions) |
| screenshot | capture a page screenshot |
| pdf | save page as pdf |
| test | run tests with Playwright Test |
| help | display help for command |
| version | output the version number |## Code Usage
Add `fluentci-pdk` crate to your `Cargo.toml`:
```toml
[dependencies]
fluentci-pdk = "0.1.9"
```Use the following code to call the plugin:
```rust
use fluentci_pdk::dag;// ...
dag().call("https://pkg.fluentci.io/[email protected]?wasm=1", "install", vec![])?;
```## 📚 Examples
Github Actions:
```yaml
- name: Setup Fluent CI CLI
uses: fluentci-io/setup-fluentci@v5
with:
wasm: true
plugin: playwright
args: |
install
- name: Run Playwright tests
run: |
fluentci run --wasm playwright test
```