Commit Graph

33531 Commits

Author SHA1 Message Date
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
Peter Fabian 9baaa88adc Allow Sale sign to be aligned with the picture. 2019-11-23 19:26:33 +01:00
Peter Fabian 3740e253b7 Action buttons in related products switched to correct size. 2019-11-23 19:18:04 +01:00
Peter Fabian 27e844f5bd Make the Sale marker font and padding same as buttons. 2019-11-23 19:15:03 +01:00
Peter Fabian 1e3ad2a146 Fix review form for user who isn't logged in. 2019-11-23 19:11:48 +01:00
Julia Amosova 798e668895 Resolving conflict with feature branch 2019-11-23 18:11:37 +00:00
Peter Fabian 47c69cac37 Bottom padding is unnecessarily huge. 2019-11-23 19:08:19 +01:00
Peter Fabian fc3aadbee9 Fix related products view in narrow view. 2019-11-23 19:07:33 +01:00
Peter Fabian 76f28e57c9 This breaks the new review form/title alignment. 2019-11-23 19:06:43 +01:00
Julia Amosova d2fa44518a Resolving conflict with master branch 2019-11-23 18:03:04 +00:00
Peter Fabian c9fbc0ae4e Improved styling of product gallery. 2019-11-23 18:43:45 +01:00
Peter Fabian fe348bb70f Product gallery margin fix for wide and narrow viewports. 2019-11-23 18:42:45 +01:00
Peter Fabian f1bb497b66 Make thumbnails in the gallery affect parent's height and wrapping 2019-11-23 18:41:28 +01:00
Julia Amosova 6dea34770f Introduce Docker compose file & setup-wizard e2e test 2019-11-23 17:40:29 +00:00
Peter Fabian 2cda8d4cfe Small layout enhancements. 2019-11-23 18:18:15 +01:00
Peter Fabian 04453768c0 Breadcrumbs adjustment for various widths. 2019-11-23 18:17:19 +01:00
Peter Fabian 22e7570f1e Align the Add to cart button height with the quantity input. 2019-11-23 18:16:32 +01:00
Peter Fabian 5d4619f7d6 Don't break button text mid-word. 2019-11-23 17:31:35 +01:00
Peter Fabian e5fb7bee6d Mid-width layout adjustment. 2019-11-23 17:31:10 +01:00
Christopher Allford 1984a11ff2 Added media element initialization to variation description audio/video shortcodes 2019-11-22 14:08:31 -08:00
Rodrigo Primo ac2bb33ba0
Merge pull request #25072 from woocommerce/renovate/eslint-config-wpcalypso-5.x
Update dependency eslint-config-wpcalypso to v5
2019-11-22 16:04:33 -03:00
Rodrigo Primo 3cd6db822b
Merge branch 'master' into renovate/eslint-config-wpcalypso-5.x 2019-11-22 16:03:55 -03:00
Rodrigo Primo d341559007
Merge pull request #25100 from woocommerce/renovate/eslint-6.x
Update dependency eslint to v6.7.0
2019-11-22 15:59:59 -03:00
Peter Fabian c15a3d525a Updated related products layout. 2019-11-22 19:35:05 +01:00
Renovate Bot 5370c4ea60
Update dependency eslint to v6.7.0 2019-11-22 18:34:24 +00:00
Rodrigo Primo 36cdc3cf8f Simplify and modernize WC_Emails::queue_transactional_email()
This commit replaces calls to call_user_func_array() with the spread operation.
2019-11-22 15:25:44 -03:00
Rodrigo Primo 9bebc4e69e Simplify and modernize wc_walk_category_dropdown_tree()
This commit replaces calls to call_user_func_array() and func_get_args() with the spread operation. Both to make more explicit that this is a variadic function and to do argument unpacking when calling the walker method.
2019-11-22 15:25:44 -03:00
Rodrigo Primo 193395ddf5 Simplify and modernize two methods
This commit replaces calls to call_user_func_array() with argument unpacking using the spread operator that was added in PHP 5.6 in the following methods:

- WC_Admin_Setup_Wizard::run_deferred_actions()
- WC_Mail::send()
2019-11-22 15:25:08 -03:00
Peter Fabian 943ea231e7 Tidy up product tabs. 2019-11-22 18:56:06 +01:00
Peter Fabian 3e9a862450 Added offset between product information and tabs. 2019-11-22 17:30:34 +01:00