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).