Skip to content

1.1.5

Choose a tag to compare

@github-actions github-actions released this 01 Apr 04:56
· 281 commits to trunk since this release
ab64f7e

QIT CLI 1.1.5 Release Notes

New Features

QIT Runtime (@woocommerce/qit-runtime)

A new npm package that gives test packages a standard way to interact with QIT and each other at runtime. Two access patterns:

  • qit.actions('makePurchase') - Anonymous capability discovery. Like WordPress do_action(), multiple packages register implementations for the same action name. Consumers iterate over all of them. Adding a payment gateway = zero code changes in the consumer.
  • qit.package('woocommerce/core-utils') - Known dependency access. Import another package's exports directly (page objects, login helpers, etc).

Also provides typed environment access (qit.env.siteUrl), WP-CLI execution (qit.wp()), and async polling (qit.waitFor()).

New packages scaffolded with qit package:scaffold include it automatically.

Documentation: https://qit.woo.com/docs/test-packages/concepts/runtime

Actions manifest field

Test packages can now declare actions in their qit-test.json manifest:

{
  "actions": {
    "makePurchase": "./flows/pay.ts"
  }
}

QIT CLI generates the actions manifest and package map at test execution time, wiring qit.actions() and qit.package() to the loaded test packages.

Bug Fixes

Fix $schema validation blocking existing test packages

The $schema field in qit-test.json is for IDE support. A strict const constraint was rejecting packages that used a different schema URL (e.g., qit.woo.com vs GitHub raw). Removed the constraint and added a filter so $schema mismatches never block execution.

Fix error output rendering for run:e2e failures

Errors like "Missing required secrets" were rendered as a double-wrapped JSON mess. Now they display cleanly:

Missing required secrets:

  * E2E_JP_SITE_ID (required by: woocommerce-payments/woopayments-e2e-tests:1.3.0)

Set these environment variables before running this command.
Example: export E2E_JP_SITE_ID='your-secret-value'

Improvements

Outdated runtime version warning

When a test package has an older version of @woocommerce/qit-runtime installed, QIT CLI now warns with an actionable message instead of silently continuing.

Support and Feedback

If you have any questions, encounter issues, or have suggestions, please visit our GitHub Issues Page.

What's Changed

  • Add QIT runtime actions support and CLI integration by @Luc45 in #432
  • Fix OIDC publish + remove outdated dangling test by @Luc45 in #433

Full Changelog: 1.1.4...1.1.5