Commit Graph

33455 Commits

Author SHA1 Message Date
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
vedanshujain aaa85ac74c Use standard way to calculate total in `get_subtotal_to_display` for consistency.
We were calculating subtotal to display slightly differently then we would have calculated subtotal in the cart. This was affecting subtotal value in invoices and in order confirmation screen.

This patch updates how we calculate subtotal to display such that we calculate in same way.
2019-11-27 04:43:23 +05:30
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
Peter Fabian 2d1c9444f5 Fix action button centering for WP 5.3. 2019-11-26 22:34:34 +01:00
Julia Amosova a7e582b1bb Update docker-compose file & setup running e2e tests on Travis CI 2019-11-26 20:34:00 +00:00
Peter Fabian f50d8ffdd1 Fixed PHPCS. 2019-11-26 20:54:04 +01:00
Peter Fabian 229967f9ea Moar fixes. 2019-11-26 20:50:29 +01:00
Peter Fabian 096b7136db Button color changed to highlight for this theme. 2019-11-26 19:24:39 +01:00
Peter Fabian 65d6a4fcbe Fix shipping form input radios to only show in case there's a selection.
Radio inputs in cart style synced with the one on Checkout page.
2019-11-26 19:19:51 +01:00
Peter Fabian 96c13b9cf6 Login form improvements and related error message updates. 2019-11-26 19:18:40 +01:00
Peter Fabian eebcf1e3be Select2 update on Cart page. 2019-11-26 18:23:42 +01:00
Peter Fabian fd1672f49e Blocks adjustments. 2019-11-26 18:07:49 +01:00
Peter Fabian a1ce40942e Select2 adjustments. 2019-11-26 17:00:44 +01:00
Peter Fabian 56c7f3bf97 My Account section updates. 2019-11-26 17:00:27 +01:00
Peter Fabian 361a23f46f Improved Thank you page styling. 2019-11-26 14:10:09 +01:00
vedanshujain 2ac3a0dfc8 Code standard fixes. 2019-11-26 18:36:23 +05:30
vedanshujain 5ef41f1ecc Empty cart before test to make sure everything in cart exists 2019-11-26 18:21:24 +05:30
Peter Fabian cf03de11af Narrow checkout layout improvements. 2019-11-26 13:32:58 +01:00
Peter Fabian 7c3ec0dd2c Wide checkout layout improvements. 2019-11-26 13:13:05 +01:00
Peter Fabian 154a5b51ac Wide checkout layout improvements. 2019-11-26 11:00:55 +01:00
Peter Fabian 095f6a1373 Update cart button width and colors. 2019-11-26 10:02:10 +01:00
Peter Fabian e82e53bd7d Fix notice a tag colours. 2019-11-26 09:59:40 +01:00
Peter Fabian f911b1f4bb Reverse order only on add to cart message on single product page. 2019-11-26 09:58:52 +01:00
Peter Fabian 2bf2b87250 Store notice and info messages colors fixed. 2019-11-26 09:43:15 +01:00
Peter Fabian 135e1bebc9
Updated tested up to for WP 5.3 2019-11-25 21:28:33 +01:00
vedanshujain 1de30e8963 Refactor so that trait don't have class specific functions. 2019-11-26 01:30:45 +05:30
Denis Dvali 4bc4faf7af Adding new explicit error codes for WC.COM installer API authentication errors. 2019-11-25 19:32:10 +03:00
Rodrigo Primo 874381c426
Merge pull request #25110 from woocommerce/update/e2e-must-pass-optional
Move E2E tests to allowed_failures section
2019-11-25 10:15:49 -03:00
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
vedanshujain bee7ea4490 Add trait which contains common total calc logic.
`WC_Abstract_Order` and `WC_Cart_Totals` have their own logic to calculate totals. This means that we would have to fix in two places. This commit adds a trait which can be used to place shared logic between above two classes.
2019-11-25 17:53:14 +05:30
Paul Dechov 7f65a33fe8 Honor tax rounding preference in edit item and refund flows
The default value ('no') of the setting to round taxes at subtotal was not being honored on the Edit Order screen, which resulted in off-by-one discrepancies between the checkout item total and the edited or refunded item total.

This change is to round to the proper precision (w.r.t. the 'woocommerce_tax_round_at_subtotal' setting) for the default value of the form, as well as when the values are dynamically recomputed.
2019-11-25 17:49:43 +05:30
Gerhard e0e05928c8 Move E2E tests to allowed_failures section while we wrap up new e2e tests. 2019-11-25 13:37:30 +02:00
Denis Dvali 234bb9139f Move "no permissions" error data (error code, message, http code) to
a constant within a dedicated error messages class.
2019-11-25 13:46:07 +03:00
Peter Fabian 44c5500fe5 Make cart great again. 2019-11-24 20:05:28 +01:00
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
Peter Fabian 7db4abb2a0 Sale sign size was too large between wide and narrow viewport. 2019-11-24 12:20:29 +01:00
Peter Fabian 546b947e23 Center upsells to be in line with related products 2019-11-24 12:19:36 +01:00
Peter Fabian 086c60df39 Last product in shop looks weird with even spacing. 2019-11-24 12:00:19 +01:00
Peter Fabian aadae25552 Display products in one column in narrow viewport. 2019-11-24 11:57:08 +01:00
Peter Fabian 21124cb8c2 Ordering select styling for narrow viewport--break for ultra narrow. 2019-11-24 11:56:26 +01:00
Peter Fabian 9e7ff01e21 Result count and ordering styling for wide and narrow viewport. 2019-11-24 11:42:10 +01:00
Peter Fabian 3f244bd538 Shop heading/title fix. 2019-11-24 10:03:39 +01:00
Peter Fabian f3892359f3 Make thumbnail larger, improve shop layout. 2019-11-24 09:51:15 +01:00
Renovate Bot 27defca967
Update dependency grunt-rtlcss to v2.0.2 2019-11-23 19:04:05 +00:00