Ron Rennick
6d8419e1d4
Merge branch 'master' into fix/28012
2020-12-21 10:59:38 -04:00
vedanshujain
5171108967
Better docs for test functions to specify expectations.
2020-12-21 15:51:07 +05:30
vedanshujain
b4b03f3b46
Merge branch 'master' into fix/28505
2020-12-21 15:42:04 +05:30
vedanshujain
39c200bf2d
Merge branch 'master' into fix/27673
2020-12-21 15:29:55 +05:30
Vedanshu Jain
d2c5fc0750
Merge pull request #28635 from woocommerce/packages/core-tests/setup-shipping
...
use xpath to find onboarding set up shipping task
2020-12-21 01:05:46 +05:30
Ron Rennick
4774297e15
use xpath to find onboarding set up shipping task
2020-12-19 23:00:32 -04:00
Ron Rennick
6509addabf
merge master
2020-12-18 13:40:49 -04:00
vedanshujain
84d60e5fcf
Add unit tests for all status change ops.
...
This loops and tests stock changes through ALL supported WooCommerce statuses. Hopefully this will make our inventory tracking more robust.
2020-12-17 22:28:21 +05:30
zhongruige
b23d5db546
Typo fix
2020-12-16 15:00:13 -07:00
vedanshujain
981d494d52
Add unit tests for #28592
2020-12-16 19:37:01 +05:30
vedanshujain
9ca52ee73b
Fix unit test to use new coupon error messages.
...
This also removes some cart operations which are not needed anymore to since cart already has items that we were adding in those tests.
2020-12-16 16:21:33 +05:30
zhongruige
5131c922a2
Remove unneeded no-disabled-tests
2020-12-15 20:18:16 -07:00
zhongruige
e178017e0a
Added tests for the merchant order apply coupon flow
2020-12-15 20:14:02 -07:00
Tam Mullen
44d508e332
Merge pull request #28556 from woocommerce/add/e2e-merchant-orders-refund-order
...
Added new tests for the merchant order refund flow
2020-12-15 22:35:30 +00:00
roykho
9ffdfd3401
Check in package-lock
2020-12-15 14:21:05 -08:00
zhongruige
d8018cf28e
Add missing trailing semicolon
2020-12-15 06:33:55 -07:00
Rodrigo Primo
5842068cdf
Merge pull request #28587 from woocommerce/add/e2e-docker-image-delay
...
add 12 hour delay to pulling new docker tags
2020-12-15 09:17:12 -03:00
Ron Rennick
733157638b
update package changelog
2020-12-14 10:54:29 -04:00
Ron Rennick
ef61903822
add 12 hour delay to pulling new docker tags
2020-12-14 10:42:39 -04:00
zhongruige
88630e2a32
Add delete issued refund test
2020-12-13 16:07:16 -07:00
zhongruige
46164b032d
Add config variable for simple product price and update tests to utilize it
2020-12-12 15:46:13 -07:00
zhongruige
9d95a21f48
Cleanup unused no-standalone-expect
2020-12-11 10:54:42 -07:00
zhongruige
88ddefbcb3
Dynamically pull the currency symbol instead of hard-coding it
2020-12-11 10:48:20 -07:00
zhongruige
4ca6114476
Swap out currency symbol
2020-12-11 09:47:03 -07:00
zhongruige
2caac87d03
Added new tests for the merchant order refund flow
2020-12-10 21:27:04 -07:00
zhongruige
c07f31f22c
Merge branch 'master' into add/e2e-merchant-orders-filter-orders
2020-12-08 15:50:00 -07:00
zhongruige
1dfedf425c
Code review feedback--setting the consts in the test itself
2020-12-08 15:09:23 -07:00
Ron Rennick
a757ff2b53
update extension count to 3
2020-12-07 16:30:55 -04:00
Ron Rennick
80ded96120
merge master
2020-12-07 13:13:52 -04:00
zhongruige
ae1ebfd031
Code review feedback--moving statuses to config values
2020-12-05 20:30:42 -07:00
Ron Rennick
a47cb707b3
fix merge conflict
2020-12-04 14:52:38 -04:00
Ron Rennick
5a81d8de41
disable setting variation fields in variable product test
2020-12-03 15:09:55 -04:00
Ron Rennick
2718c85f78
Merge branch 'master' into fix/25643
2020-12-03 14:47:52 -04:00
Ron Rennick
53fd108b1b
implement peer dependencies in e2e packages
2020-12-03 11:55:02 -04:00
Ron Rennick
60556ea288
update package changelogs
2020-12-01 19:19:10 -04:00
Ron Rennick
a21f9e24a4
add config to package.json in utils, core tests
2020-12-01 18:03:50 -04:00
zhongruige
a37fbff4f5
Merge branch 'master' of https://github.com/woocommerce/woocommerce into add/e2e-merchant-orders-filter-orders
2020-11-27 15:18:12 -07:00
zhongruige
7e286e30f2
Added order filter tests; created helper functions for the tests; updated READMEs and CHANGELOG to reflect changes
2020-11-27 14:49:20 -07:00
Tam Mullen
0877fd5233
Merge pull request #28041 from woocommerce/packages/e2e/custom-initialization
...
add support for custom container initialization script
2020-11-27 20:13:02 +00:00
Ron Rennick
0e29912b14
merge master
2020-11-25 21:29:19 -04:00
Ron Rennick
810fd41973
Merge branch 'master' into fix/25643
2020-11-20 15:01:08 -04:00
Ron Rennick
089bb87314
clarify which WordPress nightly
2020-11-20 14:48:18 -04:00
Néstor Soriano
e7584104a1
Merge pull request #28147 from woocommerce/use-mozart-to-renamespace-dependencies
...
Use Mozart instead of a script to renamespace packages
2020-11-20 09:16:25 +01:00
Ron Rennick
a5a109ccbe
Merge pull request #28217 from woocommerce/fix/27786
...
remove old setup wizard test
2020-11-19 13:56:33 -04:00
Christopher Allford
c9f413d297
Created dummy `woocommerce/woocommerce-lib` package to contain dependencies
...
In order to avoid problems posed by potentially including the unconverted dependencies in the root autoloader, this package will hold all dependencies that require conflict avoidance.
2020-11-18 13:54:20 -08:00
Nestor Soriano
556ea1ecfa
Merge branch 'master' into use-mozart-to-renamespace-dependencies
2020-11-18 09:05:11 +01:00
Vedanshu Jain
ae163eb28b
Merge pull request #27734 from woocommerce/enhancement/optimize-wc-order
...
Optimize function `wc_get_orders` by priming caches beforehand
2020-11-14 12:37:44 +05:30
Rodrigo Primo
4240f9924a
Merge pull request #28048 from woocommerce/fix/27807
...
Remove dynamic build dependencies
2020-11-13 15:34:35 -03:00
Vedanshu Jain
13f429e80d
Merge pull request #28102 from woocommerce/fix/28100
...
Exclude user table columns as well while setting metadata props
2020-11-13 13:50:02 +05:30
Christopher Allford
03f65478f2
Merge pull request #28249 from woocommerce/add/composer-2
...
Update Composer to v2 (includes woocommerce-blocks 3.8.0 and woocommerce-admin 1.7.0)
2020-11-12 21:16:51 -08:00
Christopher Allford
3275c5abd1
Fixed broken code coverage
2020-11-12 14:46:39 -08:00
Christopher Allford
a95b384f08
Corrected code coverage path
2020-11-12 14:30:55 -08:00
Christopher Allford
30d2e278b9
Replaced the deprecated `WC_Admin_Note` class
2020-11-12 13:26:30 -08:00
Christopher Allford
7a26fc30dd
Fixed failing E2E test
2020-11-12 12:52:53 -08:00
vedanshujain
13f2dd6be9
Add unit tests towards issue #28100
2020-11-13 01:02:16 +05:30
vedanshujain
04fe12b5fb
Add proper params because otherwise this query will not set caches.
2020-11-12 15:10:16 +05:30
Christopher Allford
05ebdf9677
Adjusted Travis' PHPUnit to use the vendor binary instead of a global install
2020-11-11 23:42:14 -08:00
vedanshujain
fdceac9866
Delete refund cache for parent order when its deleted.
2020-11-12 10:01:15 +05:30
roykho
4ec270b93d
Add unit tests for the fix
2020-11-11 15:28:06 -06:00
Roy Ho
e0204e04e4
Merge pull request #28241 from woocommerce/fix/27566
...
Add shipping, tax and fee lines to refund response for better information in refund REST API.
2020-11-11 08:11:56 -08:00
Tam Mullen
04c9e2f12f
Merge pull request #28191 from woocommerce/packages/core-tests/functional-permlainks-test
...
add permalinks working test
2020-11-11 14:58:01 +00:00
Tam Mullen
8f46eec95a
Merge pull request #28198 from woocommerce/add/package-changelogs
...
add/update e2e package change logs
2020-11-11 14:12:52 +00:00
vedanshujain
62ae94d93e
Add shipping, tax and fee lines to refund response for better information.
2020-11-11 18:47:48 +05:30
Christopher Allford
72e93f11b2
Update CHANGELOG.md
...
Updated the `@woocommerce/api` changelog
2020-11-10 16:32:11 -08:00
Christopher Allford
93d6b261c6
Merge pull request #28129 from woocommerce/add/lerna-hoist
...
add lerna hoist, use consistent package versions
2020-11-10 16:13:58 -08:00
Ron Rennick
ac89e09c9e
remove duplicate package dependency entries
2020-11-10 16:29:22 -04:00
Christopher Allford
11c7e3bff6
Fixed issues that caused the factory creation to fail for SimpleProduct types
2020-11-09 12:02:01 -08:00
Ron Rennick
7282e0bca6
merge master
2020-11-09 14:30:01 -04:00
Ron Rennick
76d8b16659
remove old setup wizard test
2020-11-09 13:31:19 -04:00
Christopher Allford
d205d6551e
Added all of the update parameters for simple products
2020-11-06 14:01:03 -08:00
Christopher Allford
a646c712d8
Generalized the various restXXX functions
...
Since it looks like almost all of these are going to be virtually identical, it makes sense to have common functions that we can use instead of having to write all of the boilerplate unnecessarily.
2020-11-06 13:24:02 -08:00
Christopher Allford
29c9976354
Added "list", "read", "update", and "delete" actions for simple products
2020-11-06 11:11:58 -08:00
Christopher Allford
45b57d46b9
Added transformers for all of the product sub-data
2020-11-06 10:44:57 -08:00
Christopher Allford
b4a2316386
Added array support to property type and model transformer transformations
2020-11-06 10:01:12 -08:00
Christopher Allford
5e35d68789
Added a new transformation for nesting transformers
2020-11-05 22:49:37 -08:00
Christopher Allford
fb5f393acb
Made abstract product sale dates easier to work with
2020-11-05 22:20:42 -08:00
Christopher Allford
681e568fbe
Expanded on a shared transformer to encapsulate abstract product transformations
2020-11-05 21:43:45 -08:00
Christopher Allford
7fcbc69235
Added a transformer to convert between data types
2020-11-05 19:25:45 -08:00
Christopher Allford
7287eb024c
Reversed the execution of transformers for "toModel" so that things like key changes will happen first
2020-11-05 16:29:04 -08:00
Christopher Allford
d060108afe
Added a custom transformation for models to implement specific logic.
2020-11-05 14:14:47 -08:00
Christopher Allford
4f08e102c4
Simplified the transformer usage in repositories
2020-11-05 13:57:56 -08:00
Ron Rennick
9feecc1376
add/update e2e package changelogs
2020-11-05 16:57:04 -04:00
Christopher Allford
46df060c0e
Revised the ModelTransformer so that it can support more complicated transformations.
2020-11-05 12:37:40 -08:00
Nestor Soriano
8bb0f196e6
Change the strategy for moving packages
...
Since the Mozart package requires PHP 7.2, and we need to support 7.0
and 7.1, the moving step has been removed from the composer install
stage. Instead, now it has to be triggered manually via
`composer run move-vendor-namespaces`, and the moved package must be
added to source control. See the updated src/Internal/Vendor/REAMDE.md
for details.
2020-11-05 17:19:14 +01:00
Christopher Allford
67f57abe26
Added type-safe transformation functions for converting between API representations and model representation
2020-11-04 16:33:34 -08:00
Christopher Allford
f438ddc80a
Added virtually all of the data returned by the REST API to the SimpleProduct model
...
There's still a few things missing but I think this is a much better start than where we were before.
2020-11-04 14:55:58 -08:00
Ron Rennick
d0fd8acd44
add permalinks working test
2020-11-04 14:56:48 -04:00
Christopher Allford
72d09026a6
Renamed the prettyPermalinks method to better clarify its intent
2020-11-04 10:28:10 -08:00
Christopher Allford
b9ba2e880d
Added support for installations not using pretty permalinks
2020-11-03 17:04:41 -08:00
Christopher Allford
39367de732
Fixed a bug with OAuth signature generation when using query parameters
2020-11-03 17:02:12 -08:00
Roy Ho
2d6d53ed6f
Merge pull request #28127 from woocommerce/fix/duplicate-puppeteer-dependency
...
remove puppeteer dependency from main package
2020-10-30 10:34:11 -07:00
Nestor Soriano
96fce186e7
Use Mozart instead of a script to renamespace packages.
...
A custom fork of the coenjacobs/mozart package is now used to change
the namespace of the appropriate packages (only league/container
for now) instead of the previously used prefix-vendor-namespaces script.
The packages are now moved to the src/Internal/Vendor namespace instead
of being modified in-place in the vendor directory. The namespaces
are thus now prefixed with Automattic\WooCommerce\Internal\Vendor
(previously it was just Automattic\WooCommerce\Vendor).
2020-10-30 12:28:26 +01:00
Rodrigo Primo
683c8cbcd7
Merge pull request #28116 from woocommerce/fix/flaky-coupon-test
...
fix flaky e2e coupon test
2020-10-29 18:04:59 -03:00
Ron Rennick
bc2845fe3a
merge master
2020-10-29 14:27:55 -03:00
Tam Mullen
20d973975e
Merge pull request #27916 from woocommerce/add/core-tests-readme
...
add readme to core tests package
2020-10-29 17:13:40 +00:00
Ron Rennick
d30648f55f
use waitAndClick, waitForSelector where applicable
2020-10-29 12:24:50 -03:00
Ron Rennick
55313e7006
Merge branch 'master' into fix/25643
2020-10-29 10:29:16 -03:00
Ron Rennick
8830de1fa4
use delete focus selector available on order edit
2020-10-29 09:17:35 -03:00
Ron Rennick
0424bfe847
fix typo in setup instructions URL
2020-10-29 08:44:10 -03:00
Ron Rennick
21ebe3af05
remove puppeteer dependency from e2e-environment
2020-10-29 08:41:24 -03:00
Ron Rennick
ef2e226feb
use focus instead of scrollTo
2020-10-28 19:15:17 -03:00
Ron Rennick
9851c26d31
Merge branch 'master' into fix/flaky-coupon-test
2020-10-28 18:48:13 -03:00
Ron Rennick
7cb68e055c
add lerna hoist, use consistent package versions
2020-10-28 14:21:02 -03:00
Ron Rennick
038058af1e
update product new test with correct parameters
2020-10-28 13:44:33 -03:00
Tam Mullen
a0233fad93
Merge pull request #27978 from woocommerce/docs/e2e-environment-0.1.6
...
update e2e-environment readme
2020-10-28 12:51:13 +00:00
Tam Mullen
8e5bd336de
Merge pull request #27994 from woocommerce/fix/27979
...
expand e2e-utils readme, simplify exports
2020-10-28 12:50:57 +00:00
Néstor Soriano
604958c4a8
Merge pull request #28103 from woocommerce/fix/issue-27756
...
Fix/issue 27756
2020-10-28 10:06:55 +01:00
Ron Rennick
1794026773
fix flaky e2e coupon test
2020-10-27 16:44:42 -03:00
roykho
996d206ce5
Add unit test for #27756
2020-10-26 12:32:15 -07:00
Shiki
30854efc1b
Replace assertStringContainsString with strpos
...
This is to make the PHP 7.0 CI pass.
2020-10-26 13:28:04 -03:00
Shiki
ba3e107cb8
Orders V2 API: Add test for parent_name
2020-10-26 13:28:04 -03:00
Shiki
94ecfcab34
Orders API: Add parent_name to schema
2020-10-26 13:28:04 -03:00
Shiki
c6f82b96a1
Orders API: Add unit test for parent_name line_item property
2020-10-26 13:28:04 -03:00
Shiki
a05316878e
Orders API Tests: Fix failing tests because of the new property
2020-10-26 13:28:04 -03:00
Shiki
3a1b125e3a
Fix coding style
2020-10-26 13:28:04 -03:00
Ron Rennick
9d47a1c072
simplify e2e-environment exports
2020-10-21 16:17:10 -03:00
Ron Rennick
e91a09f302
remove remaining webalias fragments
2020-10-21 15:47:09 -03:00
Ron Rennick
5e2e01e7b8
add Nightly message to log, bump Travis
2020-10-21 13:25:23 -03:00
Ron Rennick
7ebfdbeb0e
add support for custom container initialization script
2020-10-21 10:53:48 -03:00
Ron Rennick
7a5cad3f99
variation test works to last uncommented step
2020-10-20 19:43:07 -03:00
Ron Rennick
bf410cc44e
use checkbox object for checking/unchecking
2020-10-20 17:21:34 -03:00
Ron Rennick
894dceee95
Fixes needed for variable product E2E test
...
- Jest/Puppeteer sometimes will not find an element on page load when that element is outside the initial viewport
- There were duplicate .variation_tab classes which confused Jest/Puppeteer
- Add function for opening and verifying new product page
- Update test sequence for changes in flow in markup and Jest/Puppeteer
2020-10-20 11:25:36 -03:00
Claudio Sanches
f7e9c1bfb7
Merge pull request #27995 from rodrigoprimo/fix/phpcs-travis
...
Fix the Travis build job that runs PHPCS
2020-10-20 10:14:39 -03:00
Claudio Sanches
139df7bdaa
Merge pull request #27986 from woocommerce/php8/fixes-in-dependency-injection-container
...
[PHP 8] Fixes in the dependency injection engine for PHP 8 compatibility
2020-10-19 20:22:35 -03:00
Ron Rennick
503e898307
use direct exports
2020-10-19 11:32:28 -03:00
Rodrigo Primo
17471f8f66
Stop installing PHPCS globally in the Travis build job
...
PHPCS is already installed as a project dependency (we run `composer
install` for each build job) so there is no need to install it as a
global package in `tests/bin/phpcs.sh`.
2020-10-16 16:37:05 -03:00
Rodrigo Primo
eaef2409bd
Use phpcs installed locally instead of globally
...
This is an attempt to fix the PHPCS Travis build job that started
failing with the following error:
```
Running Code Sniffer.
tests/bin/phpcs.sh: line 14: phpcs: command not found
The command "bash tests/bin/phpcs.sh" exited with 127.
```
(https://travis-ci.org/github/woocommerce/woocommerce/jobs/736440739#L508 )
2020-10-16 16:36:57 -03:00
Ron Rennick
3b1481bb01
expand e2e-utils readme, simplify exports
2020-10-16 16:25:23 -03:00
Julia Amosova
ff67a7c1ce
Add note about test locations in WC Core and other projects.
2020-10-16 11:27:00 -04:00
Julia Amosova
bd5b65426f
Update README with more details on how to write e2e tests.
2020-10-16 11:20:33 -04:00
Julia Amosova
8c094daceb
Add guide for writing e2e tests in README
2020-10-16 11:20:24 -04:00
Nestor Soriano
042e2cd0bb
Fixes in the dependency injection engine for PHP 8 compatibility
...
- One dummy class used for tests had a 'final private' method, this
is not allowed in PHP 8 and so the method is now just 'private'.
- The AbstractServiceProvider class was using
ReflectionParameter::getClass. This is deprecated in PHP8 and thus
that usage has been replaced with an utility method that uses
the recommended replacement.
2020-10-16 11:31:26 +02:00
Rodrigo Primo
7599517e91
Merge pull request #27965 from woocommerce/fix/27874
...
switch to api package, bump utils package version
2020-10-15 15:05:43 -03:00
Ron Rennick
dd6d460fec
update e2e-environment readme
2020-10-15 14:53:21 -03:00
Ron Rennick
c3f934ad21
add e2e-environment package changelog
2020-10-15 14:14:22 -03:00
Ron Rennick
5815e5cf48
Merge pull request #27914 from woocommerce/fix/e2e-container-check
...
Only attempt to run E2E tests if testing host is ready
2020-10-15 13:44:55 -03:00
Ron Rennick
f0e6e1761c
Merge pull request #27913 from woocommerce/fix/27820
...
add test:e2e-debug command
2020-10-15 13:44:32 -03:00
Ron Rennick
0a7c0dc7fc
Merge pull request #27790 from woocommerce/fix/27787
...
Expose automattic/puppeteer-utils in e2e-environment
2020-10-15 09:52:52 -03:00
Néstor Soriano
e4a109f0d1
Merge pull request #27763 from woocommerce/fix/27445
...
Remove protection as we already diff and update only if needed.
2020-10-15 10:01:34 +02:00
Ron Rennick
f945a0e16c
switch to api package, bump utils package version
2020-10-14 15:13:08 -03:00
Ron Rennick
514e6cc308
document disabling puppeteer download
2020-10-14 13:59:37 -03:00
Vedanshu Jain
ae610d3f5f
Merge pull request #27492 from woocommerce/fix/api/229
...
Add User-friendly Attribute Names and Values to Order Line Items Metadata
2020-10-14 22:02:19 +05:30
vedanshujain
a332b399d3
Use variable instead of magic constants.
2020-10-14 18:50:44 +05:30
vedanshujain
c01f32a390
Use default value if formatted value is not available
2020-10-14 14:51:19 +05:30
vedanshujain
8e12de5d3c
Merge branch 'fix/api/229-unit-test' of https://github.com/shiki/woocommerce into fix/api/229
2020-10-14 13:53:03 +05:30
Julia Amosova
03078c5a9d
Implement `waitAndClick` in the setup e2e test.
2020-10-13 16:25:28 -04:00
Ron Rennick
13bcd43bfe
expose automattic/puppeteer-utils in e2e-environment
2020-10-13 16:16:32 -04:00
Ron Rennick
24713a45c3
restore shipping setup test
2020-10-13 16:15:07 -03:00
Shiki
1be78d1ebf
Use different terms to avoid clash with the similar V2 test
...
I suppose I could have deleted the attribute and term first but I think
this is better and shorter. Maybe.
2020-10-13 22:32:32 +05:30
Shiki
a9bf6b71ac
OrdersV2: Add test for line items meta_data
...
This currently fails because it's not implemented yet.
2020-10-13 22:32:32 +05:30