This file is intended to be used to configure the jest object in a single place.
The setupJestObject method can be imported from @woocommerce/e2e-environment for easy usage.
This change is done to ensure that these tests pass.
Wonky Tests:
- 'can create simple virtual product and add it to the cart'
- 'can create simple non-virtual product and add it to the cart'
It is observed that these tests fail when the following criteria are met:
- Running in headless mode
- Viewport is not set to 960x700
It is observed to pass when:
- Running in non-headless
- Running as an individual test file
The most likely culprit causing this issue is the verifyAndPublish function. More specifically, the element with the selector '.updated.notice' does not show up when the failing criteria are met.
Changes:
- Moved setViewport to the beforeAll block
- Added a afterAll block to log out after each set of tests
- References the MENUS array from specs/data/elements.js
This script takes a menus array which contains selectors for top-level menu items and their associated sub-menus and verifies that they all load successfully.
* add flag to distinguish between the development repo and npm package
* introduce local E2E file resolver function
* update package changelog and readme
* Preserve stock metadata for refunded items.
Prevents fully restocked items on partially refunded orders from having stock reduced on subsequent order updates.
* Add E2E test covering errant restocking fix.
* Create more sample orders data.
* Code formatting.
* Add tests for pagination.
* Formatting.
* Add test case for inclusion and exclusion parameters.
* Add test for parent and parent_exclude parameters.
* Add test case for status parameter.
* Add test case for customer parameter.
* Add test case for product parameter.
* Create a test order with all numerical properties populated.
* Add test case for precision parameter.
* Add test case for search parameter.
* Add test case for orderby parameter.
* Move missed api-core-tests files.
* Force tests to run in band (sequentially).
* Reverting changes in https://github.com/woocommerce/woocommerce/pull/30380, preparatory to merging the My Subscriptions and Marketplace pages back into one Extensions page.
* Moved category nav to a separate file.
* Added main nav tabs.
* Added category nav, styled the mobile version.
* Experiments with doing category tabs as a list.
* Styling category menu as a list of links in rectangular pills on desktop.
* Adjusting margins of product list in in-app marketplace.
* Removed `submenu_file` filter which called deleted `update_menu_highlight` method.
* Restored styling for update count bubble on My Subscriptions tab.
* Styling update bubble on My Subscriptions tab.
* Addressing design feedback. Restyled category pills to make them more obvious. Added `Browse categories` title before category menu on desktop. Changed `.addon-product-group-title` to an h2.
* Addressing feedback from https://github.com/woocommerce/woocommerce/pull/31085#pullrequestreview-806319880.
- Removing addition of `admin_title` filter calling deleted `update_my_subscriptions_title` method.
- Prepending `__DIR__` constant before path in `require` call.
This commit replaces the moxios package with the
axios-mock-adapter, in order to fix all of the failing
tests. This felt necessary because changing the
TypeScript configuration would have the largest
potential impact on this package, due to it
being written natively in it. This package is a
great candidate for testing all of the new
configuration changes out on.
* Removed Changlogger Autoload
* Changed Jetpack Changelogger Formatter Loading
Rather than using the Composer autoload, we should use the
changelogger's "filename" option to point directly at the file.
This keeps the file out of the autoloads, since it's possible that
plugins or packages may be symlinked and break the relative
path to the plugin.