Skip to content

fluentci-io/playwright-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Playwright Plugin

fluentci pipeline ci

This plugin sets up your CI/CD pipeline with Playwright.

🚀 Usage

Add the following command to your CI configuration file:

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:

[dependencies]
fluentci-pdk = "0.1.9"

Use the following code to call the plugin:

use fluentci_pdk::dag;

// ...

dag().call("https://pkg.fluentci.io/[email protected]?wasm=1", "install", vec![])?;

📚 Examples

Github Actions:

- 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