Julia Amosova
88fa2885fc
Update jest version
2019-12-15 19:13:28 +00:00
Julia Amosova
4e134f8ec4
Testing Docker build on Travis
2019-12-15 17:54:33 +00:00
Julia Amosova
c1b358929b
Add page creation & check for Docker container status to run e2e tests
2019-12-15 16:44:40 +00:00
Julia Amosova
5645f5882a
Add check for Docker container to be built on Travis when post is created
2019-12-15 16:04:06 +00:00
Julia Amosova
14afe36204
Add check for Docker container to be built on Travis
2019-12-15 15:32:26 +00:00
Julia Amosova
53dcdd77b3
Update Docker + Travis setup
2019-12-15 13:09:29 +00:00
Julia Amosova
cff1272b7e
Add check for new setup wizard flow & fix ship to different address click
2019-12-11 17:15:37 +00:00
Julia Amosova
90ddb08765
Merge branch 'new/puppeteer-screenshot-tester' into new/front-end-checkout-e2e-test
2019-12-11 14:54:39 +00:00
Julia Amosova
29671dd9ec
Resolving conflict with master branch
2019-12-11 14:53:07 +00:00
Julia Amosova
900289c191
Update the way `ship to different address` checkbox is set
2019-12-11 12:27:41 +00:00
Julia Amosova
47ecd75479
Wait for Recommended section elements to be visible in the obw test
2019-12-11 12:18:31 +00:00
Julia Amosova
c7d4989f01
Update clicks in obw and checkout tests & productIsInCheckout function
2019-12-11 12:02:44 +00:00
Claudio Sanches
2975b3a7b7
Rate limit feature
2019-12-11 01:38:19 -03:00
Claudio Sanches
f7632de06e
Merge pull request #25164 from om4james/webhook-delete-cache
...
Delete cached webhook data when a webhook is deleted
2019-12-10 22:45:42 -03:00
Claudio Sanches
523c72f265
Fix WordPress nightly unit tests ( #25198 )
...
* Remove images after uploaded in WC_Tests_Product_Data
* Remove attachment after test
* Fixed image_id
2019-12-10 13:57:52 -03:00
Claudio Sanches
104f40c36e
Merge pull request #24281 from woocommerce/fix/24269
...
Handle multiple decimal points
2019-12-09 14:07:29 -03:00
Andrej Mernik
d20d429e32
Add postcode validation for Slovenia ( #25174 )
...
Add postcode validation for Slovenia
2019-12-09 10:09:45 -03:00
Julia Amosova
bf8ce8dcd7
Wait for the Recommended section to load in the setup wizard test
2019-12-09 09:51:13 +00:00
Julia Amosova
2477d07b48
Various improvements to e2e tests
2019-12-06 15:06:48 +00:00
Claudio Sanches
b4af5f3c89
Updated regex to allow only one decimal point
2019-12-06 11:11:47 -03:00
Claudio Sanches
e535a16b48
Fixed unit tests
2019-12-06 11:00:40 -03:00
James Collins
0246b02a94
Merge branch 'master' into webhook-delete-cache
2019-12-06 08:57:54 +08:00
Claudio Sanches
8dbf7edb6f
Fixed unit tests
2019-12-05 21:26:03 -03:00
Rodrigo Primo
27915dd696
Exception when WC_Product_Variation is instantiated with the wrong type
...
This commits changes WC_Product_Variation to raise an exception when the
class is instantiated with an ID that belongs to a post object that is
not a product variation.
This is necessary to avoid problems like the one described in #24956
where passing a variable product ID to WC_Product_Variation would result
in transparently modifying the variable product title and excerpt.
2019-12-05 15:45:48 -03:00
Claudio Sanches
d7e2a98aaf
Merge pull request #24828 from woocommerce/fix/24695
...
Adds shared code between Orders and Cart calculation logic.
2019-12-05 12:39:50 -03:00
Peter Fabian
4dfa68b62d
More PHPCS fixes.
2019-12-05 15:46:13 +01:00
Peter Fabian
9b398947dd
Fixed the test by sleeping longer.
2019-12-05 15:17:34 +01:00
Peter Fabian
3ba3d5cf1b
Made the fail messages unique.
2019-12-05 15:07:03 +01:00
Peter Fabian
7bfbe7a5f1
Removed incorrect comment.
2019-12-05 15:05:38 +01:00
Peter Fabian
0d3074a554
Added rate limiting to Add payment method.
2019-12-05 12:03:02 +01:00
Julia Amosova
62607a918c
Resolving conflicts with migration branch
2019-12-04 21:02:34 +00:00
Rodrigo Primo
3af024fc5c
Merge pull request #25031 from woocommerce/feature/24956
...
Introduced wc_get_product_object() helper
2019-12-04 16:53:04 -03:00
Claudio Sanches
e3b2d9f10c
Merge branch 'master' into feature/inline-notices
2019-12-04 16:26:10 -03:00
Claudio Sanches
5fdb880831
Merge branch 'master' into feature/24956
2019-12-04 16:18:39 -03:00
Claudio Sanches
8033d5751e
Changed wc_get_product_classname function name to wc_get_product_object
2019-12-04 16:15:16 -03:00
Julia Amosova
44a0fa6a25
Resolving conflict with migratin branch
2019-12-04 19:03:35 +00:00
Claudio Sanches
a12c25862b
Revert "Add support for '_held_for_checkout` records to prevent race conditions."
2019-12-04 16:03:05 -03:00
Claudio Sanches
0686e6f1cd
Merge pull request #25000 from woocommerce/feature/pay-button-support
...
Initial support for "pay button"
2019-12-04 16:02:02 -03:00
Rodrigo Primo
4af9a94129
PHPCS fixes
2019-12-04 15:52:20 -03:00
Claudio Sanches
adbb4fd2d3
Merge pull request #24937 from jenkoian/wc-placeholder-attrs
...
Add support for custom attributes to wc_placeholder_img().
2019-12-04 15:42:41 -03:00
Julia Amosova
1a6adfd0db
Merge pull request #24672 from woocommerce/new/front-end-cart-e2e-test
...
Add new Puppeteer front-end e2e test: cart page
2019-12-04 17:03:10 +00:00
James Collins
7187db66e1
Add unit test
2019-12-04 12:29:40 +08:00
Julia Amosova
defbcc456e
Adjust `npm install` in travis / docker setup
2019-12-03 22:21:41 +00:00
Julia Amosova
51fcf56ecb
Increase wait time for the docker container to start
2019-12-03 21:00:46 +00:00
Claudio Sanches
0c486785ad
Merge pull request #25089 from woocommerce/fix/24009
...
Add support for '_held_for_checkout` records to prevent race conditions.
2019-12-03 17:47:22 -03:00
Julia Amosova
9e4f55a82f
More tweaks to Travis / Docker setup
2019-12-03 20:34:40 +00:00
Julia Amosova
d04d862c95
Add npm install to Travis / Docker setup
2019-12-03 19:56:03 +00:00
Claudio Sanches
df4eb9c817
Use wc_get_order() in unit tests, and fixed coding standards
2019-12-03 16:44:37 -03:00
Claudio Sanches
988b72e461
Updated filter name to woocommerce_hold_stock_for_checkout
...
Also fixed coding standards
2019-12-03 16:38:17 -03:00
Julia Amosova
37e367f379
Resolve conflicts with master branch
2019-12-03 18:49:28 +00:00
Julia Amosova
4c8c4a8dbf
Adjust Travis + Docker setup
2019-12-03 18:43:33 +00:00
Rodrigo Primo
567b667acf
Improve wc_print_notices() test coverage
2019-12-03 15:29:10 -03:00
Claudio Sanches
6a395e2485
Merge pull request #25064 from woocommerce/fix/24315
...
Optimize variable product duplication slug generation
2019-12-03 15:28:55 -03:00
Claudio Sanches
15ffaeee6b
Merge pull request #25101 from woocommerce/remove-call_user_func_array
...
Remove a few calls to func_get_args() and call_user_func_array()
2019-12-03 14:51:43 -03:00
Rodrigo Primo
86f59dff09
Merge pull request #24961 from woocommerce/fix/admin-caching-incr
...
Changed wp_cache invalidation from using increment to using microtime.
2019-12-02 15:32:17 -03:00
Julia Amosova
f4afae89c6
Add store owner login in the cart page test
2019-12-02 17:54:45 +00:00
Julia Amosova
3ffaaea6f5
Resolving conflict with migration branch
2019-12-02 17:19:58 +00:00
Julia Amosova
3eb620282e
Add store owner logout before running customer my account test
2019-12-02 16:05:22 +00:00
Julia Amosova
3d4dc64d8d
Update README with Docker setup details and running tests
2019-12-02 12:43:58 +00:00
Julia Amosova
c93c7776f1
Add additional order verification by the store owner
2019-12-02 11:21:01 +00:00
Julia Amosova
435d64919b
Add order verification by the store owner
2019-11-30 22:07:29 +00:00
Julia Amosova
6fb8f23ec6
Resolving conflict with migration branch
2019-11-28 16:46:35 +00:00
Julia Amosova
9d219dc5e0
Fix customer login on My Account page
2019-11-28 16:33:43 +00:00
Julia Amosova
d65c3c76c3
Resolve additional conflict with migration branch
2019-11-28 14:25:28 +00:00
Peter Fabian
309c48ab0e
Deprecated old cache function and replaced it with a new one.
2019-11-28 14:03:57 +01:00
Julia Amosova
3a7aeb04e6
Resolving conflict with migration branch
2019-11-28 12:47:28 +00:00
Julia Amosova
460b2f19e3
Add empty `test:e2e.json` for overriding default variables if needed
2019-11-27 23:46:47 +00:00
Julia Amosova
7b7473f917
Add `npm install` to the Travis implementation for running e2e tests
2019-11-27 00:25:11 +00:00
Julia Amosova
314c613462
Update `default.json` with default Docker test site details
2019-11-26 23:50:08 +00:00
Julia Amosova
843ceead48
Update setup-wizard test & WP Docker image version
2019-11-26 23:06:43 +00:00
vedanshujain
8c2c83d488
Use `wc_round_tax_total` to make it consistent with how we round taxes.
...
When price includes taxes, we round down. This patch uses the correct method to round taxes depending on the mode instead of plain rounding.
2019-11-27 03:13:39 +05:30
Julia Amosova
a7e582b1bb
Update docker-compose file & setup running e2e tests on Travis CI
2019-11-26 20:34:00 +00:00
vedanshujain
5ef41f1ecc
Empty cart before test to make sure everything in cart exists
2019-11-26 18:21:24 +05:30
vedanshujain
60cd7b3651
Refactor Order Class to use shared calculation logic.
...
We added a trait to move shared logic betweem Orders and Cart. This commit refactors Order class to use that shared logic.
Also adds a test for a failing case.
2019-11-25 17:53:14 +05:30
Julia Amosova
b1738068a4
Fix the way usage tracking pop-up window is handled
2019-11-24 15:40:23 +00:00
Julia Amosova
05175254ed
Update admin and customer user details in docker compose file
2019-11-24 13:49:39 +00:00
Julia Amosova
882315182b
Remove test:e2e.json file from the code base
2019-11-24 13:18:57 +00:00
Julia Amosova
2818a3c67d
Add config file to store variables needed to run e2e tests
2019-11-24 13:08:48 +00:00
Julia Amosova
5efae398fe
Finish remaining work on the setup-wizard e2e test
2019-11-24 11:38:13 +00:00
Julia Amosova
798e668895
Resolving conflict with feature branch
2019-11-23 18:11:37 +00:00
Julia Amosova
d2fa44518a
Resolving conflict with master branch
2019-11-23 18:03:04 +00:00
Julia Amosova
6dea34770f
Introduce Docker compose file & setup-wizard e2e test
2019-11-23 17:40:29 +00:00
Julia Amosova
5c57759dbc
Implement @jest/test-sequencer in order to run tests in specific order
2019-11-22 14:56:58 +00:00
Julia Amosova
59499da8ef
Update products in the checkout verification & address filling functions
2019-11-22 12:33:08 +00:00
Julia Amosova
6f0617825a
Resolving conflicts with feature branch
2019-11-21 17:21:58 +00:00
Julia Amosova
5e083cfdbf
Change the way navigation between My Account pages is done
2019-11-21 16:52:29 +00:00
Rodrigo Primo
6cd08dc7bd
Use the spread operator instead of call_user_func_array() in WC_Data_Store
...
This commit replaces a call to call_user_func_array() in WC_Data_Store::__call() with argument unpacking using the spread operator which was introduced in PHP 5.6. This change should improve WooCommerce performance a tiny bit since WC_Data_Store::__call() is called somewhat frequently and call_user_func_array() has a bad performance reputation. I added one unit test to make sure this change doesn't break the functionality of the altered method.
2019-11-21 11:52:47 -03:00
Rodrigo Primo
fa875a4d25
Fix PHPCS errors in tests/framework/class-wc-dummy-data-store.php
2019-11-21 11:52:07 -03:00
Rodrigo Primo
ed1c4b11b8
Fix PHPCS errors in WC_Tests_Data_Store class file
2019-11-21 10:41:27 -03:00
Rodrigo Primo
44b09cb15a
Remove unused test method
2019-11-21 10:40:38 -03:00
vedanshujain
70a54d0639
Added Unit Tests for `held_for_checkout` records.
2019-11-21 18:11:37 +05:30
Christopher Allford
753f39ff27
Added unique slug generation for variable product duplication
...
The standard wp_unique_post_slug() function will run one query per name collision, leading to a large number of queries being made when a product template is duplicated repeatedly. We can avoid this by doing the unique generation ourselves.
2019-11-18 13:49:41 -08:00
Maxime Jobin
61256ad208
Use the $username variable
...
This test could fail if time() does not return the same value twice.
2019-11-16 11:09:59 -05:00
Christopher Allford
4120fe1cd8
Added tests to product duplication
2019-11-15 21:12:22 -08:00
Claudio Sanches
e95dcfb68a
Added unit tests for wc_get_product_classname()
2019-11-13 15:30:03 -03:00
Claudio Sanches
d8fed95403
Convert all notice data into HTML data
2019-11-07 20:34:49 -03:00
Claudio Sanches
830e612420
Updated notice tests
2019-11-07 20:25:32 -03:00
Claudio Sanches
fdd391e10e
Introduced wc_get_pay_buttons() function
2019-11-07 17:23:38 -03:00
Claudio Sanches
ced207633c
Added unit tests for pay button support
2019-11-07 17:23:19 -03:00
Julia Amosova
ddbd688bd4
Introduce postID after creating simple and variable products
2019-11-06 22:17:44 +00:00