Claudio Sanches
94d1b742ad
Merge pull request #25545 from woocommerce/prep/after-3.9
...
Bumped versions for the upcoming release.
2020-02-04 13:05:27 -03:00
Peter Fabian
4a506ebcf7
Merge pull request #25530 from woocommerce/fix/country-region-label
...
Fix/country region label
2020-02-04 13:54:22 +01:00
Peter Fabian
f57fef5bdd
Updated unit tests.
2020-02-04 13:45:28 +01:00
Peter Fabian
e613056634
This perhaps better represents the spirit of the test.
2020-02-01 14:19:22 +01:00
Peter Fabian
132ced6039
Fixed test for 4.0.
2020-01-31 21:05:50 +01:00
Peter Fabian
6410ef9156
Updated since tags for the upcoming version.
2020-01-31 18:03:54 +01:00
Peter Fabian
a9a64fcee0
Merge pull request #25482 from woocommerce/fix/cart-e2e-test
...
Fix failing cart e2e test: fix setup wizard logic if new onboarding is presented
2020-01-30 12:51:56 +01:00
Julia Amosova
3dfc8f3dc5
Remove unnecessary 2nd setup wizard flow for the new onboarding
2020-01-30 11:29:28 +00:00
Julia Amosova
18d93e321a
Update setup wizard test logic
2020-01-30 10:38:10 +00:00
Julia Amosova
0a5c866bc4
Remove taking screenshots sent to AWS on failed tests
2020-01-24 17:17:52 +00:00
Julia Amosova
d4c8719d1f
Remove the process of building legacy e2e test site
2020-01-24 17:05:18 +00:00
Julia Amosova
eb92d35d96
Remove DB (used for the initial setup) that is no longer needed
2020-01-24 17:05:17 +00:00
Julia Amosova
2415cf1952
Fix setup wizard logic if new onboarding is presented
2020-01-24 14:37:27 +00:00
Julia Amosova
26ade8bb1f
Add 1 second wait time between 2 UI blocks / AJAX calls
2020-01-22 16:52:35 +00:00
Rodrigo Primo
4e58f77575
Merge pull request #25322 from woocommerce/pr-25242
...
Prevent fatal error in set_current_gateway with no WC session
2020-01-17 09:54:03 -03:00
Rodrigo Primo
2668bf6025
Merge pull request #25314 from woocommerce/fix/24746
...
Removed the lowercase conversion of product search terms
2020-01-16 16:29:07 -03:00
Rodrigo Primo
8aad482bc1
Fix typo
2020-01-16 15:31:50 -03:00
Rodrigo Primo
cb85c981ac
Merge branch 'master' into pr-25242
2020-01-16 15:30:58 -03:00
Claudio Sanches
bccb93fa3c
Merge pull request #25378 from woocommerce/fix/25361
...
Add license key support to MaxMind GeoLite2 database downloads
2020-01-15 20:51:14 -03:00
Rodrigo Primo
793dba81f1
Fix failing unit test
...
This commit fixes the unit test
WC_Tests_API_Functions::test_wc_rest_upload_image_from_url_should_return_error_when_invalid_image_is_passed() which was failing due to a change in a WordPress core message with the following error:
```
2) WC_Tests_API_Functions::test_wc_rest_upload_image_from_url_should_return_error_when_invalid_image_is_passed
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'Invalid image: File is empty. Please upload something more substantial. This error could also be caused by uploads being disabled in your php.ini or by post_max_size being defined as smaller than upload_max_filesize in php.ini.'
+'Invalid image: File is empty. Please upload something more substantial. This error could also be caused by uploads being disabled in your php.ini file or by post_max_size being defined as smaller than upload_max_filesize in php.ini.'
/home/travis/build/woocommerce/woocommerce/tests/unit-tests/util/api-functions.php:89
```
(https://travis-ci.org/woocommerce/woocommerce/jobs/637353161#L402 )
This test only fails when using WordPress nightly build (the yet to be
released WP 5.4).
To fix this problem, this commit adds an if statement to check for different error
messages depending on the WordPress version that is being used to run
the tests. In the future, we might want to refactor this test to remove
its dependency to a WordPress error message to make it more robust and
stable.
2020-01-15 11:17:49 -03:00
Claudio Sanches
992e13fb08
Updated implementation of geolite2
2020-01-14 16:24:07 -03:00
Christopher Allford
7a5083e47b
Revert "Added a database option to allow for selecting different MaxMind databases"
...
This reverts commit d32c470cea
.
2020-01-13 14:41:24 -08:00
Christopher Allford
d32c470cea
Added a database option to allow for selecting different MaxMind databases
2020-01-13 14:10:08 -08:00
Christopher Allford
6d3a3053c5
Moved the database file into the woocommerce_uploads folder
2020-01-13 08:53:43 -08:00
Christopher Allford
645affb7f3
Removed permanently failing unit test for deprecated GeoLite2 library integration
2020-01-13 08:17:11 -08:00
Christopher Allford
4f6aec61fd
Added support for a randomized MaxMind database file prefix
2020-01-13 08:16:44 -08:00
vedanshujain
f0f3b21a36
Added unit tests for setting current gateway
2020-01-13 14:18:59 +05:30
Claudio Sanches
f253c87096
Fixed unit tests
2020-01-10 17:14:44 -03:00
Claudio Sanches
49aed6f6ca
Remove alternatives for deprecated methods
2020-01-10 16:31:27 -03:00
Claudio Sanches
48547143f4
Fixed integration ID
2020-01-10 15:02:56 -03:00
Christopher Allford
f5cbca5beb
Added unit tests for the MaxMind integration class
2020-01-10 02:47:43 -08:00
Christopher Allford
19ded6609d
Refactored the MaxMind database class to not use static methods in order to make testing the integration class easier
2020-01-10 02:09:51 -08:00
Christopher Allford
bbbfc3bfab
Moved the MaxMind geolocation lookup into the integration class
2020-01-09 23:46:25 -08:00
Christopher Allford
f91ff82806
Moved the loading of the database class into the integration
2020-01-09 21:29:47 -08:00
Christopher Allford
bf057927ae
Moved the loading of integration classes into the WC_Autoloader
2020-01-09 15:46:01 -08:00
Christopher Allford
3e597e6f68
Replaced the Geolocation database fetching functionality with MaxMind integration
2020-01-09 00:31:51 -08:00
Christopher Allford
f23c26a9f9
Fixed a permissions conflict caused by the dummy GeoLite2 archive's date
...
The test would fail if the web server had stored the data already!
2020-01-08 22:56:07 -08:00
Christopher Allford
95e59fc777
Made the database service class methods static for convenience \
2020-01-08 21:59:04 -08:00
Christopher Allford
1eb49ef8b8
Added filterable support for fetching the database path
...
This replaces the corresponding geolocation class functionality. We are deprecating the woocommerce_geolocation_local_database_path filter in favor of the woocommerce_maxmind_geolocation_databse_path filter. Since we want the option to turn this into a feature plugin, it's wise to make sure nothing is too generic.
2020-01-08 21:48:05 -08:00
Christopher Allford
46d7f16b19
Added support for downloading and extracting the GeoLite2 database
2020-01-08 21:09:35 -08:00
Christopher Allford
a477f9367d
Added support for creating default integrations
2020-01-08 21:05:14 -08:00
Claudio Sanches
85a077b939
Coupon race condition prevention
2020-01-06 19:44:24 -03:00
Claudio Sanches
2ce4a60ff1
Remove old unit test
2020-01-06 19:37:47 -03:00
Vedanshu Jain
d76c5b734c
Merge pull request #25300 from woocommerce/fix/25274-docker-mount-dir
...
E2E Tests: mount directory instead of copy.
2019-12-26 17:36:14 +05:30
vedanshujain
42dd1bf32b
Add an address so that shipping can be calculated
2019-12-26 14:04:52 +05:30
vedanshujain
31726d1a37
Update version numbers
2019-12-26 13:55:43 +05:30
Christopher Allford
ac22406763
Fixed the unit tests broken by the requirement that a valid address must be set to calculate shipping rates
2019-12-26 13:55:43 +05:30
Christopher Allford
027257f624
Changed the dummy postal code in the order helper to a valid one
2019-12-26 13:55:42 +05:30
Christopher Allford
c54fa91145
Added unit tests for checking whether a package is shippable or not
2019-12-26 13:55:41 +05:30
Christopher Allford
e800b40ad6
Made packages with incomplete destinations unshippable
2019-12-26 13:55:41 +05:30