3.9 KiB
3.9 KiB
Unreleased
Added
- Added
jest-circus
as a test runner to enable retrying failed tests - Added
E2E_RETRY_TIMES
environment variable to determine retry count. The default is 3.
Fixed
- Updated the browserViewport in
jest.setup.js
to match thedefaultViewport
dimensions defined injest-puppeteer.config.js
Added
- Added quotes around
WORDPRESS_TITLE
value in .env file to address issue with docker compose 2 "key cannot contain a space" error. - Added
LATEST_WP_VERSION_MINUS
that allows setting a number to subtract from the current WordPress version for the WordPress Docker image. - Support for PHP_VERSION, MARIADB_VERSION environment variables for built in container initialization
resolveLocalE2ePath
to resolve path to local E2E fileWC_E2E_FOLDER
for mapping plugin root to path within repo
Fixed
- Use consistent
defaultViewport
in both headless and non-headless context
0.2.3
Added
addConsoleSuppression()
,removeConsoleSuppression()
utilities to allow suppressing deprecation warnings.updateReadyPageStatus()
utility to update the status of the ready page.- Added plugin upload functionality util that provides a method to pull a plugin zip from a remote location:
getRemotePluginZip( fileUrl )
to get the remote zip. Returns the filepath of the zip location.
- Added plugin zip utility functions:
checkNestedZip( zipFilePath, savePath )
checks a plugin zip file for any nested zip files. If one is found, it is extracted. Returns the path where the zip file is located.downloadZip( fileUrl, downloadPath )
downloads a plugin zip file from a remote location to the provided path.
- Added
getLatestReleaseZipUrl( owner, repository, getPrerelease, perPage )
util function to get the latest release zip from a GitHub repository. - Added
DEFAULT_TIMEOUT_OVERRIDE
that allows passing in a time in milliseconds to override the default Jest and Puppeteer timeouts.
Fixed
- Fix latest version tag search paging logic
- Update fallback PHP version to 7.4.22
- Update fallback MariaDB version to 10.6.4
- Update fallback WordPress version to 5.8.0.
- Remove unused WP unit test install script.
0.2.2
Added
takeScreenshotFor
utility function to take screenshots within testssendFailedTestScreenshotToSlack
to send the screenshot to the configured Slack channelsendFailedTestMessageToSlack
to send the context for screenshot to the configured Slack channeltoBeInRange
expect numeric range matcher
0.2.1
Added
- Support for screenshots on test errors
- Slackbot to report errors to Slack channel
Fixed
- Update
wc-e2e
script to fix an issue with directories with a space in their name
0.2.0
Added
- support for custom container name
- Insert a 12 hour delay in using new docker image tags
- Package
bin
scriptwc-e2e
- WP Mail Log plugin as part of container initialization
Fixed
- Return jest exit code from
npx wc-e2e test:e2e*
- Remove redundant
puppeteer
dependency - Support for admin user configuration from
default.json
0.1.6
Added
useE2EEsLintConfig
,useE2EBabelConfig
config functions- support for local Jest and Puppeteer configuration with
useE2EJestConfig
,useE2EJestPuppeteerConfig
config functions - support for local node configuration
- support for custom port use in included container
- support for running tests against URLs without a port
- support for PHP, MariaDB & WP versions
- support for a non-plugin folder mapping (theme or project)
- support for
JEST_PUPPETEER_CONFIG
environment variable - implement
@automattic/puppeteer-utils
- implement
@wordpress/e2e-test-utils
- enable test debugging with
test:e2e-debug
script
Fixed
- support for local test configuration
- support for local Jest setup
docker:ssh
script works in any repo
Changes
- removed the products and orders delete resets
- eliminated the use of docker-compose.yaml in the root of the project
0.1.5
- Initial/beta release