Commit Graph

38748 Commits

Author SHA1 Message Date
vedanshujain c834dfb98b Add test for when entered price has more precision than displayed price. 2021-05-07 14:30:44 +05:30
vedanshujain 2930057847 Add tests to make sure discounts are rounded properly in cart. 2021-05-07 14:30:44 +05:30
vedanshujain a0fbff3879 Modify unit test to accomodate pre-rounding total. 2021-05-07 14:30:44 +05:30
vedanshujain b156e329f8 Remove rounding from lines which are not final totals. 2021-05-07 14:30:44 +05:30
vedanshujain 973bba347f Remove rounding from subtotals as they would already be rounded depending upon settings. 2021-05-07 14:30:44 +05:30
vedanshujain 43822b7401 Remove rounding from individual item discount taxes.
Rounding here conflicts with round at subtotal settings becase we would round at line item level irrespective of settings.
2021-05-07 14:30:44 +05:30
Nestor Soriano cdc55bf846
Fix typos in comments 2021-05-07 09:16:45 +02:00
And Finally e4d3b157ff Changed block name and CSS classnames to the more generic "promotion block". 2021-05-06 22:12:07 +01:00
Tim Howe f179ff6741 Added dates_are_gmt parameter to allow the uses of post_date_gmt column with the before and after parameters for the order RESTAPI 2021-05-06 17:06:06 -04:00
Yehuda Hassine ab6404f6f1 Remove Curaçao postcode 2021-05-06 23:02:18 +03:00
Khoi Nguyen aa913b59ed Set loop prop to widget products to set condition on single product page 2021-05-06 22:22:58 +07:00
TimBHowe 98af7209da Added the 'after_gmt' and 'before_gm' parameters 2021-05-06 10:58:27 -04:00
And Finally 21b4801cc1 Fixing doc comment for new method. 2021-05-06 15:40:02 +01:00
And Finally 2b053d4586 Added docblock comment for `$section` param. 2021-05-06 15:22:53 +01:00
And Finally f1a69cb4af Added comment to new `output_ad_block` method. Removed differences introduced by PhpStorm autoformat. 2021-05-06 15:16:49 +01:00
And Finally 3fa233872c Added `output_ad_block` method to `WC_Admin_Addons` and CSS rules to render a WooCommerce Payments ad banner at the top of the "Featured" section of the WC Core addons page, `wp-admin/admin.php?page=wc-addons&section=_featured`. This is to fulfil the requirements of WooCommerce.com issue https://github.com/Automattic/woocommerce.com/issues/9860.
We output the block if

- The user has permissions to install plugins.
- Their location is in one of the countries identified in a `geowhitelist`.
- WooCommerce Payments is not already active.
2021-05-06 12:55:30 +01:00
barryhughes 7ea5c7501f Test for the presence of 3 or more args (not 2 or more). | #29124 2021-05-05 11:43:14 -07:00
Marco Almeida f7a4aba2cb
Check for needs_payment() instead of has_status( 'pending' )
If an order needs payment, it should include the payment link, no matter the status.

Fixes #29832
2021-05-05 18:21:54 +01:00
Ron Rennick 0d59195657
Merge pull request #29735 from woocommerce/e2e/e2e-merchant-initiate-wccom
Added new e2e test to initiate WCCOM connection
2021-05-05 10:35:01 -03:00
Nestor Soriano 9dcdfddc15
Fix table creation detection in DataRegeneratorTest 2021-05-05 11:50:43 +02:00
Nestor Soriano f53f959d03
Fix the usage of FakeQueue in DataRegeneratorTest.
Also update the doc comment of FakeQueue itself on how to use it.
2021-05-05 11:11:36 +02:00
Veljko ce1e2f260d Rename the test file 2021-05-05 09:29:38 +02:00
Ron Rennick f51dfdfd56 Merge branch 'trunk' into e2e/e2e-merchant-initiate-wccom 2021-05-04 22:28:09 -03:00
Nestor Soriano c4e7074c70
Add unit tests for the DataRegenerator class 2021-05-04 16:15:16 +02:00
Nestor Soriano 4d13b0ca07
ExtendedContainer::replace now allows registering anonymous classes. 2021-05-04 16:14:34 +02:00
Nestor Soriano 6820b6e519
Add the WC_Queue::reset_instance method 2021-05-04 16:13:48 +02:00
Greg c354a67292 Finish work on order; removed unused variable from test 2021-05-03 20:21:00 -06:00
Greg e9febd57ec Merge branch 'trunk' of github.com:woocommerce/woocommerce into fix/27873 2021-05-03 13:58:55 -06:00
Greg 9347c728e9
Merge pull request #29761 from woocommerce/try/individual-test-files
Switch to individual test files
2021-05-03 13:37:52 -06:00
roykho 2e3156d436
Use proper skip test method instead of return 2021-05-03 06:33:09 -07:00
Nestor Soriano 42245ed92a
Add unit tests for LookupDataStore::update_data_for_product (variable products) 2021-05-03 11:14:33 +02:00
Greg b9bd336b0f Merge branch 'trunk' of github.com:woocommerce/woocommerce into fix/27873 2021-05-02 15:24:22 -06:00
Kapil Paul 4ae714de56 fix: coding-style-in-class-wc-email.php 2021-05-02 00:52:38 +06:00
Ron Rennick 7b23b8c8aa two more minor E2E fixes
- add shipping zone for first checkout test
- increase wait time for product import to complete
2021-04-30 16:26:51 -03:00
Ron Rennick 946f8ec903 Merge branch 'trunk' into try/individual-test-files 2021-04-30 15:13:56 -03:00
Claudio Sanches a54df37363
Merge pull request #29694 from bgrgicak/update/extensions-search-all-categories
Extension search always search all categories
2021-04-30 12:29:23 -03:00
Ron Rennick 2c72bf8a9f
Merge pull request #29734 from woocommerce/e2e/e2e-merchant-add-simple-product
Add new e2e scenario and update the existing - Merchant - Add Simple Product
2021-04-30 10:01:27 -03:00
Tam Mullen 845468a540 Adding k6 checkout example scenario 2021-04-30 13:08:09 +01:00
Tam Mullen 12ec4dfd7b Updated k6 config 2021-04-30 13:08:09 +01:00
Tam Mullen e5eeb50ff6 Updated k6 checkout test 2021-04-30 13:08:09 +01:00
Tam Mullen cd8faf2716 Proof of concept k6 test for checkout with config. 2021-04-30 13:08:09 +01:00
Ron Rennick 43859058ec run cart/checkout setup tests first 2021-04-30 09:04:48 -03:00
Nestor Soriano 467af94b1d
Add unit tests for LookupDataStore::update_data_for_product (simple products)
Also:

- Add the FakeQueue class
- Fix LookupDataStore, it was using a hardcoded "wp_" lookup table name
2021-04-30 12:10:25 +02:00
Greg b61fe9859f Merge branch 'trunk' of github.com:woocommerce/woocommerce into fix/27873 2021-04-29 16:13:13 -06:00
Ron Rennick 98f7a8562d Merge branch 'trunk' into try/individual-test-files 2021-04-29 16:29:35 -03:00
Ron Rennick 4b99a24af2
Merge pull request #29728 from woocommerce/e2e/e2e-update-checkout-naming
Update test naming for the Cart tests to include adding product from shop page
2021-04-29 15:49:18 -03:00
Ron Rennick 4a78541cf5 merge trunk 2021-04-29 15:23:26 -03:00
Ron Rennick 5d4597c31c Merge branch 'trunk' into e2e/e2e-merchant-add-simple-product 2021-04-29 15:18:14 -03:00
Greg 3aca2b9248
Merge pull request #29776 from woocommerce/e2e/coupon-test-names
give cart and checkout coupon tests unique titles
2021-04-29 12:03:16 -06:00
Greg 69bab1a40c
Merge pull request #29774 from woocommerce/e2e/no-screenshot-title
return test name when there is no screenshot
2021-04-29 11:59:56 -06:00