Skip to content

An example of a custom test plus automated browser testing.

Notifications You must be signed in to change notification settings

gravityflow/example-step

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example Workflow Step

CircleCI

The repository demonstrates how to write a simple custom workflow step plus automated browser testing using Codeception & WP-Browser.

step.php contains the custom workflow step as a plugin.

The tests/acceptance folder contains some examples of acceptance tests.

Acceptance Tests

Requirements

  • Docker Desktop. Note: It may be necessary to increase the RAM to 4GB.
  • A Gravity Forms license key

Instructions

Copy .env.sample to .env and enter your Gravity Forms license key.

Run docker-compose run codeception run -vv --html from the root folder to start the tests.

Docker compose will create containers for the following services:

  • Codeception + WP-Browser
  • WordPress
  • MariaDB
  • Selenium + Chromedriver

When the tests start the latest versions of Gravity Forms and Gravity Flow will be installed and activated.

You can watch Chrome perform the tests via VNC on localhost:5900. On a Mac open vnc://localhost:5900 in Safari. Password: secret.

An HTML report will be generated in the tests/_output folder.

About

An example of a custom test plus automated browser testing.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages