Jonathan Sadowski
fc683bdb80
Update unit tests to account for issue 24000
2020-05-05 13:32:14 -05:00
vedanshujain
27ad4a552e
Rename file and class to resemble PSR4 like convention for consistency.
2020-05-05 19:19:37 +05:30
Ron Rennick
97a6110ae4
combine puppeteer config files
2020-05-04 16:16:21 -03:00
vedanshujain
f4e169f21e
Moved test specific logic from bootstrap to test file
2020-05-02 00:31:54 +05:30
vedanshujain
13dfb8180f
Add unit test and a sample Woo plugin file
2020-05-01 22:47:08 +05:30
Ron Rennick
71fb49dc06
restore latest default.json from master
2020-05-01 13:28:59 -03:00
Ron Rennick
78e777f25f
restore travis e2e setup script
2020-05-01 10:18:21 -03:00
Ron Rennick
6726f6423d
merge travis config files
2020-04-30 19:58:37 -03:00
Christopher Allford
c0ecb79ba2
Merge pull request #26345 from woocommerce/refactor/phpunit-suite
...
Restructure PHPUnit Suite
2020-04-30 13:51:16 -07:00
Ron Rennick
7fbbbf6608
update travis config
2020-04-30 16:43:36 -03:00
Christopher Allford
98b6b973e8
Updated the tests readme to explain the purpose of our two test directories
2020-04-30 10:09:42 -07:00
Ron Rennick
0de3718770
change component name to e2e-environment
2020-04-30 14:01:42 -03:00
Ron Rennick
b4fcfd93c2
rename test:e2e.json, remove redundant files
2020-04-29 11:22:11 -03:00
Christopher Allford
04ec11e90b
Added a PSR-4 namespaced tests/php folder for tests written against new code in the src directory
2020-04-28 15:41:04 -07:00
Ron Rennick
d41fbc7ff2
update folder structure, use WordPress 5.4
2020-04-28 19:09:39 -03:00
Ron Rennick
da494be615
merge master
2020-04-28 16:13:30 -03:00
Vedanshu Jain
15f8eb04c4
Merge pull request #26230 from woocommerce/update/wc-admin-1.1.0
...
Update wc-admin version to 1.1.0
2020-04-28 19:05:50 +05:30
Julia Amosova
b1bb4dfdb9
Add wait for the 'Proceed' button to become active in shipping task
2020-04-27 16:30:50 -04:00
Julia Amosova
46bc16de98
Update the number of fields expected within shipping task
2020-04-27 15:29:09 -04:00
Julia Amosova
3991647c94
Add shipping store location verification step in onboarding e2e test
2020-04-27 14:22:23 -04:00
Christopher Allford
b5bd8225e8
Moved PHPUnit suite into tests/legacy
2020-04-24 13:53:40 -07:00
Vedanshu Jain
ee119e0a7e
Revert "Introduce a `reserved stock` class and database table to prevent race conditions during checkout"
2020-04-21 15:37:21 +05:30
Christopher Allford
caa1a6d475
Merge remote-tracking branch 'origin/master' into fix/update-minimum-version
2020-04-16 14:46:17 -07:00
Claudio Sanches
e43dc9b8a2
Use assertContains
2020-04-16 18:06:18 -03:00
Claudio Sanches
02e3ec7e97
Use assertStringContainsString to compare images
2020-04-16 17:52:22 -03:00
Claudio Sanches
a5bc29e26c
Fixed unit test on WP 5.5 alpha
2020-04-16 00:25:32 -03:00
Jeff Stieler
17d3771273
Remove defunct E2E test runner script, add docker scripts to package file.
2020-04-15 11:17:48 -06:00
Jeff Stieler
622e47f29f
E2E: add app-level node config dir to path.
2020-04-15 11:07:32 -06:00
Ron Rennick
e8efb82b9e
add install jest
2020-04-14 12:06:26 -06:00
Ron Rennick
9742085f01
move before script to bash
2020-04-14 12:06:26 -06:00
Ron Rennick
049d606b15
use consistent job name
2020-04-14 12:06:26 -06:00
Ron Rennick
812e500224
update test configuration to use e2e-env
2020-04-14 12:06:26 -06:00
Ron Rennick
393240a0f3
move e2e-env to tests/e2e-env
2020-04-14 12:06:25 -06:00
Ron Rennick
3d63ad48a3
Tweak configuration
...
- set executable on initialize.sh
- use pagename query string for ready page
- use environment vars for docker config
2020-04-14 12:06:25 -06:00
Ron Rennick
c414eddf59
merge config from from https://github.com/woocommerce/woocommerce-admin/pull/3717
2020-04-14 12:06:25 -06:00
Julia Amosova
99b8c6facf
Reorder benefits section testing in new OBW e2e test
2020-04-08 17:34:04 -04:00
Nestor Soriano
0eed82b3b7
Fix code standards violations introduced in #25092
2020-04-07 12:28:30 +02:00
Christopher Allford
09df1205de
Updated the minimum PHP version to 7.0
2020-04-06 17:07:33 -07:00
Vedanshu Jain
3bf473517d
Merge pull request #25708 from woocommerce/update/reserve-stock-for-checkout
...
Introduce a `reserved stock` class and database table to prevent race conditions during checkout
2020-04-07 02:16:22 +05:30
Vedanshu Jain
057b352de7
Merge pull request #26016 from woocommerce/fix/26010
...
Setup Wizard: Default 100% of users to new OBW.
2020-04-07 02:10:09 +05:30
Vedanshu Jain
237463c39b
Merge pull request #25800 from woocommerce/fix/25748
...
Fixes tax rounding issues
2020-04-07 00:24:34 +05:30
vedanshujain
ef17b148be
Removed unused tax class prop
2020-04-06 12:49:46 +00:00
Vedanshu Jain
e3eb30c509
Merge pull request #26066 from woocommerce/fix/26002
...
Fix/26002
2020-04-06 18:05:47 +05:30
Vedanshu Jain
52ded367f5
Merge pull request #26075 from woocommerce/fix/26015
...
Prune elements with display none to fix regression.
2020-04-06 18:03:45 +05:30
Néstor Soriano
13765d9e91
Merge pull request #25092 from leanzafrancesco/fix/25091
...
Fix/25091 - Wrong totals in orders with taxable and non-taxable products and percentage coupons
2020-04-06 12:31:07 +02:00
Christopher Allford
a7c0dec33a
Added a function to fetch all of the path define tokens that may be present in template paths
2020-04-05 13:21:50 -07:00
Christopher Allford
33e81654a9
Made the path tokenization deterministic
...
Since the tokens are replaced in a first-discovered first-replaced order, we may accidentally create tokenized paths like '{{ABSPATH}}/test' instead of the desired '{{WP_CONTENT_DIR}}test'. By ordering them according to specificity however, we ensure that we tokenize as much of the path as possible.
2020-04-05 12:41:39 -07:00
Christopher Allford
4aab99614a
Added tests for path tokenization/untokenization
2020-04-05 12:15:39 -07:00
Christopher Allford
91c608f38e
Merge branch 'master' into refactor/23783
2020-04-05 10:55:00 -07:00
Mike Jolley
9b5189dc7a
Remove tests for order methods which were removed
2020-04-03 15:55:15 +01:00
vedanshujain
facfb16131
Changed class name to match file name
2020-04-03 15:55:14 +01:00
Claudio Sanches
2ebd86f2dc
Revert "Revert "Add support for '_held_for_checkout` records to prevent race conditions.""
2020-04-03 15:55:13 +01:00
vedanshujain
af810af57a
Add unit test for removing displa:none from emails
2020-04-03 13:49:28 +00:00
vedanshujain
0af20fe4ef
Add unit test for guest checkout with per user coupon usage limit.
2020-04-02 15:04:57 +00:00
Steve Grunwell
17c56d6d12
Merge branch 'master' into fix/travis-against-minimium-requirements
2020-04-01 14:30:42 -04:00
Julia Amosova
35555138bd
Remove unused functions imports from components
2020-03-31 11:20:12 -04:00
Julia Amosova
2090dad9fd
Update shipping setup through Task List
2020-03-31 10:00:43 -04:00
Julia Amosova
cef74d73fe
Replace old shipping setup with new OBW shipping setup task
2020-03-31 00:32:42 -04:00
Julia Amosova
37b47b496b
Improve shipping setup in OBW e2e test
2020-03-30 23:13:17 -04:00
Julia Amosova
4c1eece4f4
Add shipping setup to OBW e2e test
2020-03-30 21:57:37 -04:00
Julia Amosova
a5bc44e92e
Refactor 'Continue' button clicks & add Theme section test coverage
2020-03-30 20:12:39 -04:00
Christopher Allford
23e555823b
Merge pull request #25943 from woocommerce/fix/25810
...
Fixed remainder application for percent coupons
2020-03-30 14:13:03 -07:00
Jeff Stieler
d9a1c50074
Fix <SelectControl> interaction in new OBW test.
...
Remove usage of `puppeteer-select`.
2020-03-30 11:31:56 -06:00
Julia Amosova
bb20a436b8
Add new OBW e2e test (not complete - missing Theme section coverage)
2020-03-27 17:45:20 -04:00
Julia Amosova
f8bb7681b6
Merge pull request #25839 from woocommerce/fix/remove-legacy-e2e-travis-setup
...
Remove legacy e2e test suite travis setup
2020-03-27 10:11:56 -04:00
Peter Fabian
0e0b1d646d
Merge pull request #25882 from woocommerce/fix/25845
...
Set usage count before usages query
2020-03-18 15:44:49 +01:00
Christopher Allford
917e5ff77d
Merge pull request #25923 from woocommerce/fix/test-install-db-socket
...
Correct usage of database sockets in test install script
2020-03-17 09:08:18 -07:00
Christopher Allford
ed55034867
Added a check to prevent coupon cent remainders from decreasing the item cost below zero
2020-03-16 21:32:25 -07:00
Christopher Allford
98395741cf
Changed the default test file locations to respect the system's tmp folder
2020-03-13 20:44:43 -07:00
Christopher Allford
5f829d4005
Corrected the handling of sockets in the unit test install script
2020-03-13 20:44:38 -07:00
Christopher Allford
a576060403
Replaced the strict path used in the MaxMind database download test
...
It was set to /tmp directly instead of using the sys_get_temp_dir() method, leading to failures on systems with a different temp folder location,
2020-03-13 20:44:35 -07:00
Christopher Allford
8c0f4a1204
Made the is_package_shippable check more permissive
...
Initially it was made more precise to avoid calculating estimates for incomplete addresses. Due to some bad working in template files though, as well as historical precedent, we need to change it back.
2020-03-13 09:15:31 -07:00
Steve Grunwell
d085044970
Remove an unnecessary onNotSuccessfulTest() override, as the tearDown() fixture will be called regardless of the successfulness of the test method
2020-03-12 16:00:01 +00:00
Steve Grunwell
0a5161ea3d
*CODING STANDARDS ONLY* Add method visibility, clean up inline documentation.
2020-03-12 15:57:32 +00:00
Steve Grunwell
2383670020
Simplify the test for test_get_tables_enables_filter() now that we can leverage PHP >= 5.3
2020-03-12 15:54:25 +00:00
Steve Grunwell
7f74eace0b
Rewrite WC_Tests_Install::test_get_tables()
...
Instead of comparing all tables that exist with all tables that are registered with `WC_Install::get_tables()` (which was only introduced a few versions ago in #19436 ), rewrite the test to verify that all of the tables *registered* actually exist within the database.
This will prevent tests from failing when, for example, they're run against databases that may or may not have additional plugins installed/activated. This also prevents tests from failing when running WooCommerce 4.x (e.g. with WooCommerce Admin) on WordPress < 5.3, since the tables are created but the callback to register the custom tables is never hooked.
2020-03-12 15:00:03 +00:00
Steve Grunwell
5855931542
Define the polyfill before attempting to call it
2020-03-11 16:53:25 +00:00
Steve Grunwell
86d44e74bb
Make WC_Tests_CRUD_Data::onNotSuccessfulTest() compatible with its parent declaration
2020-03-11 16:35:36 +00:00
Steve Grunwell
0a3c5186fa
The WP core test suite didn't introduce includes/listener-loader.php until WordPress 5.1, so we need to polyfill the behavior when testing against WordPress 5.0
2020-03-11 16:34:52 +00:00
vedanshujain
a2418156d4
Add tests
2020-03-11 20:47:24 +05:30
Julia Amosova
0a90489322
Remove legacy e2e test suite travis setup
2020-03-06 14:12:24 -05:00
Jan-Paul Kleemans
108ad568d0
Update comment
2020-03-04 12:30:17 +01:00
vedanshujain
657e95b55e
Added tests
2020-03-03 18:46:37 +05:30
vedanshujain
1314fdc0e7
Clear existing shippin rates before adding rate for test
2020-03-03 16:15:25 +05:30
vedanshujain
2c2d96ec95
Added tests for rounding issues
2020-03-02 15:30:10 +05:30
Vedanshu Jain
6f2b232fc7
Merge pull request #25734 from woocommerce/fix/25650
...
Fixed caching for order item on deletion
2020-02-27 13:48:44 +05:30
Ron Rennick
25ab5596a2
fix composer.lock conflict
2020-02-25 15:00:55 -04:00
Ron Rennick
77d6dc1342
update WCA class namespace in unit tests
2020-02-24 23:22:11 -04:00
Ron Rennick
2d70a48361
bump action scheduler version, add queue unit tests
2020-02-24 21:45:19 -04:00
Christopher Allford
6a292de9f9
Cleared the cache when order items are added, updated, or deleted
2020-02-23 12:41:33 -08:00
Julia Amosova
4a316b776f
Fix markdown issue in the content and add more details to the docs
2020-02-19 11:31:27 -05:00
Julia Amosova
13761799cc
Update documentation related to running e2e and unit tests
2020-02-18 17:09:03 -05:00
Brent Sessions
256d6f7808
Use new puppeteer-utils package.
2020-02-18 13:31:35 -05:00
Julia Amosova
e9ee645049
Skip 2 failing variations e2e tests (until fixed)
2020-02-13 18:32:41 +00:00
Jeff Stieler
33e6aee1af
Export all component E2E test util functions. ( #25636 )
2020-02-11 08:29:48 -08:00
Peter Fabian
e55461f6e4
Change the setting part before the verification.
2020-02-07 15:28:06 +01:00
Julia Amosova
94dcaed7ba
Remove unnecessary store owner login before creating variable product
2020-02-07 14:12:15 +00:00
Julia Amosova
e3afbfdd8c
Update `Redirect only` file download method string
2020-02-07 14:09:56 +00:00
Julia Amosova
c7e3171a31
Enable Storefront installation option in the old OBW
2020-02-07 12:59:40 +00:00
Julia Amosova
13e95db4ef
Remove wc-admin installation option from the old OBW
2020-02-07 12:59:39 +00:00
vedanshujain
ca5fd12103
Add setting to configure hash appends
2020-02-07 17:54:54 +05:30
vedanshujain
56176e0479
Append unique hash to filename for added security
2020-02-07 17:54:54 +05:30
Christopher Allford
b5d5be7df1
Removed the admin screen checking in favor of good old fashioned request parameters for COD gateway setting loading
2020-02-06 12:29:01 -08:00
Rodrigo Primo
48480eb882
Fix unit tests when running using WP nightly
...
The WooCommerce unit tests started failing when running using WP nightly
with the following error:
```
Fatal error: require_once(): Failed opening required '/tmp/wordpress-tests-lib/src//wp-includes/class-phpmailer.php' (include_path='.:/home/travis/.phpenv/versions/7.4.2/share/pear') in /tmp/wordpress-tests-lib/includes/mock-mailer.php on line 2
```
https://travis-ci.org/woocommerce/woocommerce/jobs/646855363#L1955
This was happening because WP changed the syntax of the line where
ABSPATH is defined in the context of the unit tests
(https://core.trac.wordpress.org/changeset/47198/trunk/wp-tests-config-sample.php )
and we rely on this syntax to change ABSPATH when running
`tests/bin/install.sh`.
To fix this problem, this commit updates the sed command used to change
ABSPATH to work when both the old and new syntaxes are used. In the
future we might want to consider a more robust solution to the problem
of updating ABSPATH.
2020-02-06 12:43:47 -03:00
Peter Fabian
7233dc8a2e
Merge pull request #25011 from woocommerce/try/add-wc-admin
...
wc-admin: Include package
2020-02-06 12:09:25 +01:00
Peter Fabian
ee865fe0b4
Merge pull request #25504 from woocommerce/update/order-detail-summary
...
Enhance order details and payment summary
2020-02-06 11:40:45 +01:00
Peter Fabian
d3a33f8d05
Merge pull request #24943 from woocommerce/refactor/eu-vat-brexit
...
Brexit and VAT refactor
2020-02-05 19:41:40 +01:00
Christopher Allford
92708dde1f
Merge pull request #25512 from woocommerce/fix/25438.2
...
Fixed unnecessary loading when constructing COD payment gateway
2020-02-05 10:02:38 -08:00
Peter Fabian
5ba2cdafa5
Merge pull request #25183 from om4james/webhook-de-duplication
...
Fix for Duplicate Webhook deliveries
2020-02-05 18:38:15 +01:00
Claudio Sanches
5b9937ad48
Merge branch 'master' into try/add-wc-admin
2020-02-05 13:02:51 -03:00
Claudio Sanches
545a74fe64
Fixed coding standards
2020-02-05 11:55:19 -03:00
Christopher Allford
2f024ff024
Added tab check to COD gateway options loading
2020-02-05 06:49:33 -08:00
Claudio Sanches
f5d2c98c3e
Updated unit test
2020-02-05 11:16:29 -03:00
Claudio Sanches
74768d8abd
Remove test
2020-02-05 11:13:16 -03:00
Rodrigo Primo
f539d3e04b
Merge branch 'master' into update/emogrifier
2020-02-05 10:01:38 -03:00
Rodrigo Primo
ff05b06e6b
Merge branch 'master' into update/emogrifier
2020-02-05 09:56:03 -03:00
Peter Fabian
87e42acd56
Merge branch 'master' into try/add-wc-admin
2020-02-05 13:02:20 +01:00
vedanshujain
d19c470686
Add sanity test around order and customer permissions
2020-02-05 15:42:15 +05:30
Paul Sealock
b7a9056a59
cleanup
2020-02-04 16:01:57 -08:00
Paul Sealock
2619f37b51
phpcs errors
2020-02-04 16:01:57 -08:00
Paul Sealock
4380087608
wc-admin: Include package
2020-02-04 16:01:57 -08:00
Christopher Allford
b9ceabaa52
Utilized the constants package to fix the failing tests
2020-02-04 15:50:23 -08:00
Christopher Allford
1d15df860e
Merge branch 'master' into fix/25438.2
2020-02-04 15:06:26 -08:00
Christopher Allford
57734ca8ce
Merge branch 'master' into refactor/add-jetpack-constants
2020-02-04 14:36:35 -08:00
Garrett Hyder
6295534fbb
Adds support for group_description for privacy exporters which was added in WP5.3 through WPCoreChangeset#45825 and WPCoreTracTicket#45491
2020-02-04 12:57:31 -08:00
Rodrigo Primo
fb3b977a16
Add test to make sure that negative fees never make order total negative
...
For some reason unknown to me, the following commit added logic to make
sure that negative fees never make the order total negative: 804feb9333
Probably by accident, commit 4326e39250
changed this logic when `$fees_total += $item->get_total()` was replaced by `$fees_total += $fee_total`:
4326e39250 (diff-9b4164165828b26c4b7aec01c7b17884R1594)
This commit adds a failing test that ensures that the old behavior is
tested. This test needs to be fixed before we merge the changes proposed
in PR #25504 .
2020-02-04 15:33:21 -03:00
Rodrigo Primo
08e0936aa6
Improve coverage of WC_Abstract_Order::calculate_totals() test
...
This commits improves the coverage of the
WC_Abstract_Order::calculate_totals() test by including a fee to the
order used to test the method.
2020-02-04 15:26:52 -03:00
Rodrigo Primo
b87d0e26fe
Add basic unit test for WC_Abstract_Order::get_total_fees()
2020-02-04 15:13:27 -03:00
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
Christopher Allford
c5e1fc6c45
Merge remote-tracking branch 'origin/master' into refactor/add-jetpack-constants
2020-02-03 11:50:16 -08:00
Peter Fabian
e613056634
This perhaps better represents the spirit of the test.
2020-02-01 14:19:22 +01:00
Christopher Allford
1d1413b4ee
Replaced direct access of many constants with the Constants library
2020-01-31 22:18:47 -08: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
Christopher Allford
b6046930c6
Corrected a misspelled filter name
2020-01-30 18:12:00 -08:00
Christopher Allford
8a046ab0cd
Cleaned up the template path replacement and fixed the wc_cache_set positioning
2020-01-30 16:24:07 -08: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
Claudio Sanches
052fbfcb8c
Test WC_Email::style_inline()
2020-01-29 17:07:18 -03:00
Christopher Allford
6ad091a9b7
Changed all of the constant accesses into corresponding Automattic\Jetpack\Constants usages
2020-01-28 21:21:29 -08:00
Christopher Allford
bb09a8a4ea
Prevented the COD payment gateway's "enable_for_methods" option loading outside of correct use-cases
...
Note: The tests fail in this commit because of the defines. Ran individually there are no problems, but I'm going to make another PR to merge in a package to make testing constants possible, and then come back to fix this after it gets merged.
2020-01-28 14:33:53 -08:00
Claudio Sanches
b3ea0b17b4
Merge branch 'master' into refactor/eu-vat-brexit
2020-01-27 13:15:54 -03: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
Christopher Allford
874be93c14
Removed the lowercase conversion of product search terms
...
When searched in a case sensitive manner, the conversion to lowercase causes uppercase matches that would have been found to be lost. This change increases the tolerance of the OR search format while also removing this unintended side-effect.
2019-12-24 15:00:40 -08:00
Jeff Stieler
7c0511baaa
Fix typo in docker service name.
2019-12-23 13:14:14 -05:00
Jeff Stieler
5c67310e48
Fix typo in test installation instructions. ( #25298 )
2019-12-23 11:32:54 -05:00
Rodrigo Primo
487f96d844
Fix WordPress.DateTime.CurrentTimeTimestamp vilations
...
This commit fixes all violations of the WordPress.DateTime.CurrentTimeTimestamp sniff automatically using phpcbf.
2019-12-20 14:23:05 -03:00
Rodrigo Primo
62d6b05b58
Fix Generic.Formatting.MultipleStatementAlignment violations
...
This commit fixes all violations of the Generic.Formatting.MultipleStatementAlignment sniff automatically using phpcbf.
2019-12-20 14:21:08 -03:00
Rodrigo Primo
94373f78ea
Fix WordPress.Arrays.MultipleStatementAlignment errors automatically using phpcbf
2019-12-20 13:51:26 -03:00
Julia Amosova
8854d0d074
Update comments in `run-e2e-CI.sh`
2019-12-20 00:10:44 +00:00
Julia Amosova
9397565d22
Add max amount of time waiting for the Docker container to be built
2019-12-19 22:48:03 +00:00
vedanshujain
ff2a8a58f2
Commented out flaky test
2019-12-17 19:13:19 +05:30
vedanshujain
9b7343d23b
Applied coding standards
2019-12-17 19:13:19 +05:30
vedanshujain
53bfcea110
Use same filter for stocks and coupon for consistency.
2019-12-17 19:13:19 +05:30
vedanshujain
72545c44b7
Add support for `_held_for_checkout` records to improve performance.
...
This will also improve transactional stability and avoid race conditions by providing a way to lock usage counts.
2019-12-17 19:13:19 +05:30
Julia Amosova
1658dd3962
Make setup wizard test more stable
2019-12-15 22:55:39 +00:00
Julia Amosova
f9a9fbc2c7
Pass jest exit code to npm
2019-12-15 22:34:35 +00:00