woocommerce/packages/js/e2e-environment/CHANGELOG.md

133 lines
5.3 KiB
Markdown
Raw Normal View History

2020-11-05 20:57:04 +00:00
# Unreleased
2022-03-31 13:38:35 +00:00
## Fixed
- Removed the restart policy from e2e containers
- Makes sure that the php containers are only spun up when the db containers is healthy and ready to accept connections
2022-04-01 16:00:18 +00:00
- Wait for WordPress itself to be "healthy and ready" when running `pnpm docker:up`
- Linting errors
2022-03-31 13:38:35 +00:00
2022-02-22 18:06:51 +00:00
## Changed
- Updated `resolveSingleE2EPath`
- it resolves the full path if the filePath is valid
- otherwise, it removes `tests/e2e` from the given filePath before resolving a full path.
2022-03-30 13:21:17 +00:00
- Updated `getLatestReleaseZipUrl` to make use of the assets download url over the archive zip.
2022-02-22 18:06:51 +00:00
2021-12-06 21:10:55 +00:00
## Added
2022-02-01 18:59:50 +00:00
- Added `post-results-to-github-pr.js` to post test results to a GitHub PR.
2021-12-27 14:30:40 +00:00
- Added more entries to `default.json`
2022-02-01 18:59:50 +00:00
- Added test retry support
- Save `test-results.json` from test runs to the `tests/e2e` folder.
2021-12-08 22:56:42 +00:00
- Added `upload.ini` which increases the limits for uploading files (such as for plugins) in the Docker environment
2021-12-09 20:53:06 +00:00
- Test setup, scaffolding, and removal via `wc-e2e install` and `wc-e2e uninstall`
2021-10-01 16:29:59 +00:00
- 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
2022-02-01 18:59:50 +00:00
- `resolveLocalE2ePath()` to resolve path to local E2E file
- `resolvePackagePath()` to resolve path to package file
- `WC_E2E_FOLDER` for mapping plugin root to path within repo
2022-02-01 18:59:50 +00:00
- Added the `resolveSingleE2EPath()` method which builds a path to a specific E2E test
2022-01-18 09:04:32 +00:00
- Added the ability to take screenshots from multiple test failures (when retried) in `utils/take-screenshot.js`.
- `docker:wait` to allow for waiting for env to be built without running tests
2022-01-18 09:04:32 +00:00
## Changed
2022-02-07 21:14:10 +00:00
- Updated `external.md` with instructions to manually set up sites for e2e testing.
2022-01-18 09:04:32 +00:00
- Updated `getLatestReleaseZipUrl()` to allow passing in an authorization token and simplified arguments to just the repository name
2022-02-01 18:59:50 +00:00
- Updated `deleteDownloadedPluginFiles()` to also be able to delete directories.
2021-10-01 16:29:59 +00:00
2021-11-08 16:51:54 +00:00
## Fixed
2022-01-18 09:04:32 +00:00
- Updated the browserViewport in `jest.setup.js` to match the `defaultViewport` dimensions defined in `jest-puppeteer.config.js`
2021-11-08 16:51:54 +00:00
- Use consistent `defaultViewport` in both headless and non-headless context
2022-02-01 18:59:50 +00:00
- Fixed issue with docker compose 2 "key cannot contain a space" error.
2022-01-25 17:00:33 +00:00
- Add missing `config` dependency
2021-11-08 16:51:54 +00:00
2021-09-08 14:01:02 +00:00
# 0.2.3
## Added
- `addConsoleSuppression()`, `removeConsoleSuppression()` utilities to allow suppressing deprecation warnings.
- `updateReadyPageStatus()` utility to update the status of the ready page.
2021-08-16 14:18:18 +00:00
- Added plugin upload functionality util that provides a method to pull a plugin zip from a remote location:
2021-07-15 20:39:32 +00:00
- `getRemotePluginZip( fileUrl )` to get the remote zip. Returns the filepath of the zip location.
2021-07-21 16:22:50 +00:00
- 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.
2021-08-16 14:18:18 +00:00
- 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.
2021-09-08 14:01:02 +00:00
## Fixed
- Fix latest version tag search paging logic
2021-08-19 14:19:26 +00:00
- Update fallback PHP version to 7.4.22
- Update fallback MariaDB version to 10.6.4
2021-08-18 19:09:29 +00:00
- Update fallback WordPress version to 5.8.0.
2021-08-25 14:09:14 +00:00
- Remove unused WP unit test install script.
2021-06-30 19:31:49 +00:00
# 0.2.2
2021-04-14 13:05:03 +00:00
## Added
- `takeScreenshotFor` utility function to take screenshots within tests
- `sendFailedTestScreenshotToSlack` to send the screenshot to the configured Slack channel
- `sendFailedTestMessageToSlack` to send the context for screenshot to the configured Slack channel
2021-04-09 19:15:00 +00:00
- `toBeInRange` expect numeric range matcher
# 0.2.1
2021-03-08 20:56:47 +00:00
## Added
2021-03-08 20:56:47 +00:00
- 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
2021-03-08 20:56:47 +00:00
# 0.2.0
2020-10-21 17:25:13 +00:00
## Added
2020-12-14 14:54:29 +00:00
2020-10-21 17:25:13 +00:00
- support for custom container name
2020-12-14 14:54:29 +00:00
- Insert a 12 hour delay in using new docker image tags
2020-12-15 19:14:23 +00:00
- Package `bin` script `wc-e2e`
2021-03-03 16:57:11 +00:00
- WP Mail Log plugin as part of container initialization
2020-10-21 17:25:13 +00:00
2020-11-05 20:57:04 +00:00
## Fixed
2021-03-08 20:56:47 +00:00
- Return jest exit code from `npx wc-e2e test:e2e*`
2020-11-05 20:57:04 +00:00
- Remove redundant `puppeteer` dependency
- Support for admin user configuration from `default.json`
2020-11-05 20:57:04 +00:00
# 0.1.6
2020-10-15 17:09:03 +00:00
## 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
2020-11-05 20:57:04 +00:00
# 0.1.5
2020-10-15 17:09:03 +00:00
- Initial/beta release