Skip to content

discoverygarden/ddev-dgi-playwright

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tests project is maintained

DGI-PLAYWRIGHT

Playwright integration for DGI projects, adapted from and using Lullabot/ddev-playwright.

Enable

Setup process should be straight forward. Download add-on, run install script, and tests will be immediately accessible to run:

# Installs the add-on
ddev add-on get discoverygarden/ddev-dgi-playwright

# Installs playwright with dgi additions
ddev install-dgi-playwright

Use playwright

# Runs playwright using playwrights `test` command.
ddev playwright test

# Runs playwright with access to the UI accessible at <siteuri>:9324
ddev playwright-ui

## Runs playwright in codegen mode
ddev playwright codegen

Composer Package Type Details

We define and make use of two "types" of composer project:

  • dgi-playwright-core: Defining the core Playwright config, including playwright.config.ts and including package.json/package-lock.json indicating the Node.js packages needed; and,
  • dgi-playwright-tests: Defining a set of tests to run.

We expect only one dgi-playwright-core package to be installed in a project (into test/playwright), and any number of dgi-playwright-tests packages (which should get installed into test/playwright-tests/{$name}, where {$name} is the name of the package without its namespace, as per composer/installers).

Additional Resources

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages