Forge
Plugins

Playwright

Plugin for end-to-end testing with Playwright

@bjb-forge/nx-playwright-project

Installation

npx @bjb-forge/cli add @bjb-forge/nx-playwright-project

Plugin Options

{
  "plugin": "@bjb-forge/nx-playwright-project/nx-plugin",
  "options": {}
}
OptionTypeDescription
e2e.targetNamestringThe name of the e2e target
e2e.ciTargetNamestringThe name of the CI e2e target

Inferred Targets

e2e

Runs end-to-end tests using Playwright.

Condition: All projects with Playwright configuration

Generators

playwright-project

Create a Playwright e2e testing project.

nx g @bjb-forge/nx-playwright-project:playwright-project [options]
OptionTypeRequiredDefaultDescription
directorystringYes-A directory where the project is placed
namestringNo-Project name
scopestringNoforgeImport path scope
webServerCommandstringNo-Command to start the web server for testing
webServerAddressstringNohttp://localhost:4200URL where the web server will be available

On this page