Commit Graph

28359 Commits

Author SHA1 Message Date
Rodrigo Primo 76312d546f
Merge pull request #21219 from woocommerce/kakshak-issue/21062
Coupon validation changes
2018-08-29 13:58:11 -03:00
claudiulodro 20886138aa Add unit test to verify coupon validation changes 2018-08-29 13:28:43 -03:00
Rodrigo Primo eee61b7880 Merge branch 'issue/21062' of https://github.com/kakshak/woocommerce into kakshak-issue/21062 2018-08-29 13:27:39 -03:00
Rodrigo Primo e3cbebf29e
Merge pull request #21192 from woocommerce/fix/20979
Restrict category creation in importer to appropriate permissions
2018-08-29 11:27:49 -03:00
Rodrigo Primo f1c2dbbf2b Remove unneeded phpcs ignore comment 2018-08-29 10:34:06 -03:00
Rodrigo Primo e28bdddbc2
Merge pull request #21191 from woocommerce/fix/21161
Only suppress comments number on unsupported theme shop page
2018-08-29 10:29:20 -03:00
Claudiu Lodromanean b80c6d86fc
Merge pull request #21207 from woocommerce/speedup-get-request-url-test
Reduce WC_Tests_Paypal_Gateway_Request::test_request_url() execution time
2018-08-28 13:25:09 -07:00
Claudiu Lodromanean 1258f242ff
Merge pull request #21204 from woocommerce/fix/21197
Corrected wording of stock quantity description.
2018-08-28 13:23:49 -07:00
Claudiu Lodromanean 03659ff67e
Merge pull request #21211 from Dedi-Data/patch-2
unnecessary aria-required for elements that have required
2018-08-28 13:05:31 -07:00
Claudiu Lodromanean 8d21f4ad77
Merge pull request #21205 from woocommerce/fix/21107
Unslash city name to prevent double escape.
2018-08-28 13:04:23 -07:00
Claudiu Lodromanean cf91d5a907
Merge pull request #21206 from woocommerce/improve-product-simple-tests
Remove more unnecessary cleanup code from unit tests
2018-08-28 12:59:27 -07:00
Farhad Sakhaei a22218f5f9
Update single-product-reviews.php 2018-08-29 00:25:03 +04:30
Claudiu Lodromanean e1b1aca807
Merge pull request #21200 from madeincosmos/fix/21199
Enable PDT handling for custom pending payment statuses
2018-08-28 10:47:53 -07:00
Farhad Sakhaei 7c3a3503ff
unnecessary aria-required for elements that have required
Attribute aria-required is unnecessary for elements that have attribute required.
2018-08-28 13:05:40 +04:30
Rodrigo Primo 8b62d5b06e Reduce WC_Tests_Paypal_Gateway_Request::test_request_url() execution time
This commits reduces the execution time of the test WC_Tests_Paypal_Gateway_Request::test_request_url() from about 30s to about 6s (which is still super slow and even after this change this test is still the slowest in our test suite). This test creates several products that are needed to test different scenarios. To make it run faster, the code was changed to create the WC_Product objects without saving them to the database. Just interacting with the objects is enough to this test and skipping the database makes it run much faster. Other tests might benefit from the same technique.
2018-08-27 19:04:50 -03:00
Rodrigo Primo f830c3e3dc Remove more unnecessary cleanup code from unit tests
See #21150 for more details.
2018-08-27 18:37:33 -03:00
Rodrigo Primo 7b6fcd18b5 Remove unused code 2018-08-27 17:54:55 -03:00
Claudiu Lodromanean c887307d1a
Merge pull request #21198 from woocommerce/update/21195
Remove icanhazip service from ip lookup
2018-08-27 11:32:25 -07:00
Peter Fabian 964ee9ac1a Unslash city name to prevent double escape. 2018-08-27 18:33:14 +02:00
Peter Fabian 32d3ff76c5 Use simple quote. 2018-08-27 17:28:29 +02:00
Peter Fabian 058f14e7d3 Corrected wording of stock quantity description. 2018-08-27 17:20:46 +02:00
Maria Górska 0369e3d622 Enable PDT handling for custom pending statuses 2018-08-27 12:10:36 +02:00
Gerhard Potgieter 43de3d00cd Remove icanhazip service from ip lookup, their DNS is blacklisted and blocked by most servers. 2018-08-27 11:21:37 +02:00
claudiulodro 74645b13f9 Dont allow users without manage_product_terms permissions to create categories using the importer 2018-08-24 11:32:48 -07:00
claudiulodro 2e87ec3bf1 Only suppress comments number on unsupported theme shop page 2018-08-24 10:46:57 -07:00
Claudiu Lodromanean 66c7c244ca
Merge pull request #21186 from woocommerce/fix/string-i18n
Use entire sentence for checkout address_2 placeholder string
2018-08-24 10:04:54 -07:00
Claudiu Lodromanean a57e849619
Merge pull request #21183 from aelia-co/Tweak-order-total-recalculation-js-events
Added triggering of JS events on "recalculate" action on Edit Order page
2018-08-24 09:56:30 -07:00
Claudiu Lodromanean d72ffe48e7
Merge pull request #21180 from woocommerce/fix/21160
Make RO state required.
2018-08-24 09:53:53 -07:00
Claudiu Lodromanean 1b405c2c12
Merge pull request #21162 from wackywombaat12/Fix/20987
Fix/20987
2018-08-24 09:51:23 -07:00
Claudiu Lodromanean a479ba1ff6
Merge pull request #21168 from woocommerce/fix/21079
Updated order of array traversal to respect user's order
2018-08-24 07:04:05 -07:00
Rodrigo Primo e1aa7bba4d Use entire sentence for checkout address_2 placeholder string
The placeholder string that is displayed in the address_2 field in the checkout was changed in #20639 to hide the "(optional)" part when the field is mandatory. The problem is that this was done splitting the sentence in two parts which goes against i18n best practices (https://developer.wordpress.org/themes/functionality/internationalization/#best-practices-for-writing-strings) as the order of the words can be different depending on the language. This commit creates two full sentences one with the "(optional)" part and another one without it to better support the translation of both strings.
2018-08-24 09:45:16 -03:00
Diego b8d2f548f3 Added triggering of JS events on "recalculate" action on Edit Order page
* Ref. https://github.com/woocommerce/woocommerce/issues/21181
2018-08-24 09:56:20 +01:00
Peter Fabian 2e350fe5b7 Small PHPCS fix. 2018-08-24 09:21:49 +02:00
Gerhard Potgieter bea8151533 Make RO state required. 2018-08-24 09:16:07 +02:00
Gerhard Potgieter 53f58eb0d5
Merge pull request #21104 from John-Henrique/master
Paraguay currency and states
2018-08-24 08:23:55 +02:00
John-Henrique fdd2f63ae4 Fixed version and white space 2018-08-24 03:01:13 -03:00
Jack Boyle 63b84ef407 Fix Requested Changes
Changed to check if field exists and the field is not blank.
2018-08-24 13:03:09 +10:00
Claudiu Lodromanean 9e0e01bd2c
Merge pull request #21177 from woocommerce/update-codecov
Attempt to reduce noise in PRs generated by codecov
2018-08-23 17:00:48 -07:00
Claudiu Lodromanean 9b222d69c9
Merge pull request #21170 from woocommerce/update/remove-tests-unnecessary-code
Remove unnecessary cleanup code from more unit tests
2018-08-23 14:07:47 -07:00
Rodrigo Primo 926235287f Attempt to reduce noise in PRs generated by codecov
This commit is an attempt to reduce the noise in PRs generated by the code coverage comment posted automatically by Codecov. It changes Codecov configuration to post a comment to a PR only if it changes the code coverage and it also removes reach graph, the diff image and the flags from the comment content. Leaving only a list of the files impacted by the PR. My initial plan was to leave in the comment content only a link to the full report, but I couldn't find a way to do that in the documentation (https://docs.codecov.io/docs/pull-request-comments).
2018-08-23 17:40:35 -03:00
Claudiu Lodromanean babfacd6bb
Merge pull request #21108 from woocommerce/fix/21025
Set tabindex=1 for notices
2018-08-23 13:11:08 -07:00
Claudiu Lodromanean 176c871007
Merge pull request #21174 from woocommerce/travis-retry
Retry e2e tests automatically in case of failure
2018-08-23 13:01:22 -07:00
Rodrigo Primo 4a3b175715
Merge pull request #21171 from macbookandrew/patch-2
fix typo
2018-08-23 16:30:27 -03:00
Rodrigo Primo 67b5b270f3 Retry e2e tests automatically in case of failure
Tests should be consistent. That is true for our unit tests suite, but it is something that is harded to achieve for functional tests. Our end to end tests often times fail due to factors outside of our control, and simply manually restarting the Travis build is enough to make them pass (example: https://github.com/woocommerce/woocommerce/pull/21150#issuecomment-415132390). This commits uses `travis_retry` to make Travis automatically retry a maximum of three times to run WC e2e tests in case of a failure.
2018-08-23 16:20:41 -03:00
Andrew Minion 067a79c336
fix typo 2018-08-23 14:37:54 -04:00
Rodrigo Primo 5f6c729107 Remove unnecessary clean up code from unit tests
This commit removes unnecessary clean up code form some unit tests. All database changes done during a test are automatically reverted after the test finishes, so it is not necessary to write code to manually remove them. This change simplifies the test code and make it run a bit faster.
2018-08-23 15:15:17 -03:00
Rodrigo Primo b7507ca8b3 Automatically fix phpcs violations using phpcbf 2018-08-23 15:15:11 -03:00
Peter Fabian f5fd36fbdf Updated order of array traversal to respect user's order when changing order of attributes for variations. 2018-08-23 18:41:28 +02:00
Peter Fabian 0d29e5d88f PHPCS fix. 2018-08-23 14:31:53 +02:00
Peter Fabian 2f0505a73f Added wc_kses_notice as escaping function to PHPCS. 2018-08-23 14:31:40 +02:00