Rodel Calasagsag
ee50c0d4b2
Return variable product object from response
2021-06-02 16:43:55 +08:00
Claudio Sanches
94bdcd0320
Merge pull request #27684 from woocommerce/refactor/settings-pages-classes-take-2
...
Refactor the settings pages, and add unit tests for them
2021-06-01 13:19:49 -03:00
Tam Mullen
b9037746ac
Merge branch 'trunk' of github.com:woocommerce/woocommerce into try/perf-k6-checkout-poc
2021-06-01 15:57:27 +01:00
Rodel Calasagsag
2276f70fd2
Remove merchant login & logout steps surrounding createVariableProduct()
2021-06-01 20:06:00 +08:00
Rodel Calasagsag
a028973279
Use api to create variable product
2021-06-01 20:04:04 +08:00
Rodel Calasagsag
ddef1d8d95
updated property names to match those in API documentation
2021-06-01 20:03:25 +08:00
Nestor Soriano
c6dff96c0f
Undo a wrong change in filtering logic.
2021-06-01 11:25:57 +02:00
Nestor Soriano
72442f20bb
Add the remaining tests for the Filterer class.
2021-06-01 10:06:25 +02:00
Nestor Soriano
c78627e6ee
Add unit tests for the Filterer class (variable products)
2021-05-31 16:54:55 +02:00
Nestor Soriano
9878aa37aa
Add unit tests for the Filterer class (simple products only for now)
...
Also fix a small issue in the product counters when using "or" filter.
2021-05-28 17:27:03 +02:00
Ron Rennick
d586d11ca2
add support for projects to suppress console output ( #29960 )
...
* add support for projects to suppress console output
* update E2E env readme, package lock maintenance
2021-05-26 13:20:08 +02:00
Ron Rennick
e52bb139e8
release api package 0.2.0 ( #29930 )
2021-05-25 16:00:56 +02:00
Ron Rennick
ba8597432d
support analytics page tests having charts ( #29958 )
2021-05-24 18:00:26 +02:00
Ron Rennick
e1d5fc06a4
Packages/e2e releases ( #29951 )
...
* update env docs, bump version to 0.2.2
* update util docs, bump version to 0.1.5
* update core-tests docs, bump version to 0.1.4
2021-05-24 17:37:33 +02:00
James Allan
ed3c76bd1d
Load PayPal Standard in unit tests
2021-05-24 16:04:01 +10:00
Greg
7c5fd005fd
Merge pull request #29939 from woocommerce/e2e/remove-merchant-ui-login
...
Remove merchant login/logout calls
2021-05-22 10:06:33 -06:00
Moustafa Mohsen
e13824fd19
Typo in example code block
...
Even though it's just an example ,It should reference the client not an undefined value
2021-05-22 18:06:17 +02:00
Christopher Allford
070954c888
Revert #28187
...
The default functionality within the `ThemeSupport` class has an unintended
side-effect of breaking the existing default functionality within the
`wc_get_theme_support()` function. Since the default set in the support
class is prioritized over the one given to `ThemeSupport::get_option()`,
the WordPress options set in the Customizer are never used for images.
2021-05-21 12:10:15 -07:00
Vedanshu Jain
6667233eb1
Merge pull request #29762 from woocommerce/fix/29502
...
Update restock logic during refunds closes #29502
2021-05-21 22:53:22 +05:30
Rodel Calasagsag
072af834b9
Clear browser cache and cookies after each test.
...
Add merchant logins to relevant onboarding & setup tests
2021-05-21 19:27:50 +08:00
del
8a7f185652
Trash posts using WP API
2021-05-21 04:55:14 +08:00
del
e455479db9
Removed unnecessary merchant logout
2021-05-21 04:43:47 +08:00
del
7751034808
Added necessary merchant logins
2021-05-21 04:43:29 +08:00
del
67e7521044
Reverted bulk trash logic
2021-05-21 01:18:46 +08:00
del
d74d37ce67
Corrected logic prior to merchant logout
2021-05-20 23:43:22 +08:00
del
94f51fe808
Replace switchUserToTest with merchant.logout
2021-05-20 18:41:22 +08:00
del
e149dfb12b
Relocated merchant login call to improve readability
2021-05-20 18:27:54 +08:00
del
d66f1b7075
Added necessary merchant login calls
2021-05-20 18:27:12 +08:00
del
e7b8591d5c
Removed unnecessary merchant logouts based on PR comment
2021-05-20 18:14:10 +08:00
del
ab9532c81b
Re-add necessary merchant UI login
2021-05-20 16:41:53 +08:00
del
22a355c3ce
Remove unnecessary merchant util
2021-05-20 00:42:10 +08:00
del
6826cce834
Remove merchant login in the remaining shopper test that has it
2021-05-20 00:40:16 +08:00
del
0b1310cd44
Remove merchant login/logout calls
2021-05-19 00:44:33 +08:00
Ron Rennick
92d3bdfacb
add draft status to deleteAllObjects
2021-05-14 17:00:30 -03:00
Ron Rennick
bee633cef7
Update delete all to include trash ( #29881 )
...
* update stale to Stale in feedback label CI
* delete trashed objects, use api to delete imported products
* restore two lines deleted in merge
2021-05-14 17:49:55 +02:00
Ron Rennick
2a86d2b2ab
update api package readme & changelog to prep for release
2021-05-13 16:06:28 -03:00
Greg
63fe943ef9
Merge pull request #29819 from woocommerce/fix/27873
...
Add order support to API package
2021-05-13 08:07:55 -06:00
Nestor Soriano
22b5ec121f
Fix: no output for settings classes that directly override get_settings.
2021-05-13 09:24:25 +02:00
jonathansadowski
692ddaf4f2
Merge pull request #29318 from woocommerce/fix/rounding
...
Make rounding more accurate when prices are entered more than 2dp
2021-05-12 17:43:29 -05:00
roykho
b808d9a24f
Fix merge conflicts
2021-05-11 08:53:03 -07:00
dependabot[bot]
d73c948c67
Bump lodash from 4.17.20 to 4.17.21 in /tests/e2e/utils
...
Bumps [lodash](https://github.com/lodash/lodash ) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases )
- [Commits](https://github.com/lodash/lodash/compare/4.17.20...4.17.21 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-05-11 15:45:21 +00:00
Claudio Sanches
f48b96077d
Merge pull request #29863 from woocommerce/dependabot/npm_and_yarn/tests/e2e/api/lodash-4.17.21
...
Bump lodash from 4.17.20 to 4.17.21 in /tests/e2e/api
2021-05-11 12:44:26 -03:00
Claudio Sanches
a81d0358ef
Merge pull request #29864 from woocommerce/dependabot/npm_and_yarn/tests/e2e/api/hosted-git-info-2.8.9
...
Bump hosted-git-info from 2.8.8 to 2.8.9 in /tests/e2e/api
2021-05-11 12:41:44 -03:00
roykho
8c3e90b3ce
Initialize _restock_refunded_items meta on order update
2021-05-11 08:35:48 -07:00
Ron Rennick
7237051b67
three small e2e fixes found through smoke testing ( #29834 )
...
- remove merchant login for beforeAll in cart & checkout coupon tests. Test objects created with the rest API.
- eliminate error when merchant logout is called when merchant is not logged in
- eliminate rest API error when deleting an object that no longer exists
2021-05-10 17:16:31 +02:00
Roy Ho
f9441dcc00
Merge pull request #29778 from woocommerce/add/29608
...
Product attributes lookup table creation and filling
2021-05-10 07:41:39 -07:00
Ron Rennick
c7afe437d7
small E2E coding fixes ( #29816 )
2021-05-10 16:27:01 +02:00
dependabot[bot]
ce9fce8d0d
Bump hosted-git-info from 2.8.8 to 2.8.9 in /tests/e2e/api
...
Bumps [hosted-git-info](https://github.com/npm/hosted-git-info ) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases )
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md )
- [Commits](https://github.com/npm/hosted-git-info/compare/v2.8.8...v2.8.9 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-05-07 22:44:27 +00:00
dependabot[bot]
e25581c29b
Bump lodash from 4.17.20 to 4.17.21 in /tests/e2e/api
...
Bumps [lodash](https://github.com/lodash/lodash ) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases )
- [Commits](https://github.com/lodash/lodash/compare/4.17.20...4.17.21 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-05-07 22:44:23 +00:00
vedanshujain
ed7c81127c
Add rounding it test since we changed it in code.
2021-05-07 15:53:52 +05:30
Nestor Soriano
8b12fee96f
Merge branch 'trunk' into refactor/settings-pages-classes-take-2
2021-05-07 12:16:13 +02:00
vedanshujain
f53e9dde44
Use edit context to get unformatted price.
2021-05-07 14:59:14 +05:30
vedanshujain
18411d2b3b
Add code comments for confusing changes.
2021-05-07 14:30:45 +05:30
vedanshujain
6c2f30132d
Add clear cart call to prevent side effects from tests.
2021-05-07 14:30:45 +05:30
vedanshujain
49ed94a1d0
Add expected deprecate calls to make tests work with parent::setUp.
2021-05-07 14:30:44 +05:30
vedanshujain
f5056d37e4
Add expected deprecated call so that we can call setUp for this testcase.
2021-05-07 14:30:44 +05:30
vedanshujain
162588c42d
Add test for when product prices has more precision than is displayed.
2021-05-07 14:30:44 +05:30
vedanshujain
c834dfb98b
Add test for when entered price has more precision than displayed price.
2021-05-07 14:30:44 +05:30
vedanshujain
2930057847
Add tests to make sure discounts are rounded properly in cart.
2021-05-07 14:30:44 +05:30
vedanshujain
a0fbff3879
Modify unit test to accomodate pre-rounding total.
2021-05-07 14:30:44 +05:30
Nestor Soriano
9dcdfddc15
Fix table creation detection in DataRegeneratorTest
2021-05-05 11:50:43 +02:00
Nestor Soriano
f53f959d03
Fix the usage of FakeQueue in DataRegeneratorTest.
...
Also update the doc comment of FakeQueue itself on how to use it.
2021-05-05 11:11:36 +02:00
Veljko
ce1e2f260d
Rename the test file
2021-05-05 09:29:38 +02:00
Ron Rennick
f51dfdfd56
Merge branch 'trunk' into e2e/e2e-merchant-initiate-wccom
2021-05-04 22:28:09 -03:00
Nestor Soriano
c4e7074c70
Add unit tests for the DataRegenerator class
2021-05-04 16:15:16 +02:00
Nestor Soriano
4d13b0ca07
ExtendedContainer::replace now allows registering anonymous classes.
2021-05-04 16:14:34 +02:00
Greg
c354a67292
Finish work on order; removed unused variable from test
2021-05-03 20:21:00 -06:00
Greg
e9febd57ec
Merge branch 'trunk' of github.com:woocommerce/woocommerce into fix/27873
2021-05-03 13:58:55 -06:00
roykho
2e3156d436
Use proper skip test method instead of return
2021-05-03 06:33:09 -07:00
Nestor Soriano
42245ed92a
Add unit tests for LookupDataStore::update_data_for_product (variable products)
2021-05-03 11:14:33 +02:00
Greg
b9bd336b0f
Merge branch 'trunk' of github.com:woocommerce/woocommerce into fix/27873
2021-05-02 15:24:22 -06:00
Ron Rennick
7b23b8c8aa
two more minor E2E fixes
...
- add shipping zone for first checkout test
- increase wait time for product import to complete
2021-04-30 16:26:51 -03:00
Ron Rennick
946f8ec903
Merge branch 'trunk' into try/individual-test-files
2021-04-30 15:13:56 -03:00
Ron Rennick
2c72bf8a9f
Merge pull request #29734 from woocommerce/e2e/e2e-merchant-add-simple-product
...
Add new e2e scenario and update the existing - Merchant - Add Simple Product
2021-04-30 10:01:27 -03:00
Tam Mullen
845468a540
Adding k6 checkout example scenario
2021-04-30 13:08:09 +01:00
Tam Mullen
12ec4dfd7b
Updated k6 config
2021-04-30 13:08:09 +01:00
Tam Mullen
e5eeb50ff6
Updated k6 checkout test
2021-04-30 13:08:09 +01:00
Tam Mullen
cd8faf2716
Proof of concept k6 test for checkout with config.
2021-04-30 13:08:09 +01:00
Ron Rennick
43859058ec
run cart/checkout setup tests first
2021-04-30 09:04:48 -03:00
Nestor Soriano
467af94b1d
Add unit tests for LookupDataStore::update_data_for_product (simple products)
...
Also:
- Add the FakeQueue class
- Fix LookupDataStore, it was using a hardcoded "wp_" lookup table name
2021-04-30 12:10:25 +02:00
Greg
b61fe9859f
Merge branch 'trunk' of github.com:woocommerce/woocommerce into fix/27873
2021-04-29 16:13:13 -06:00
Ron Rennick
98f7a8562d
Merge branch 'trunk' into try/individual-test-files
2021-04-29 16:29:35 -03:00
Ron Rennick
4b99a24af2
Merge pull request #29728 from woocommerce/e2e/e2e-update-checkout-naming
...
Update test naming for the Cart tests to include adding product from shop page
2021-04-29 15:49:18 -03:00
Ron Rennick
4a78541cf5
merge trunk
2021-04-29 15:23:26 -03:00
Ron Rennick
5d4597c31c
Merge branch 'trunk' into e2e/e2e-merchant-add-simple-product
2021-04-29 15:18:14 -03:00
Greg
3aca2b9248
Merge pull request #29776 from woocommerce/e2e/coupon-test-names
...
give cart and checkout coupon tests unique titles
2021-04-29 12:03:16 -06:00
Greg
69bab1a40c
Merge pull request #29774 from woocommerce/e2e/no-screenshot-title
...
return test name when there is no screenshot
2021-04-29 11:59:56 -06:00
Greg
c47009c8f9
Merge pull request #29763 from woocommerce/e2e/remove-unused-product-import
...
remove unused product import function from jest setup script
2021-04-29 11:58:27 -06:00
Ron Rennick
a1be8f9969
WIP orders rest repository
2021-04-29 14:10:50 -03:00
Ron Rennick
d5d723f6d8
Merge branch 'trunk' into fix/27873
2021-04-29 13:48:07 -03:00
Ron Rennick
00f7e30db5
merge trunk
2021-04-29 13:47:25 -03:00
Ron Rennick
7e91998f1e
Merge branch 'trunk' into e2e/remove-unused-product-import
2021-04-29 10:45:00 -03:00
roykho
87047c77df
Limit the new refund restock logic to order version 5.4+
2021-04-29 06:30:53 -07:00
Ron Rennick
b251bca7b6
Merge branch 'trunk' into try/individual-test-files
2021-04-29 09:54:59 -03:00
Veljko
a6388d9c34
Fix test by adding new shipping zone
2021-04-29 12:27:46 +02:00
Veljko V
45177c0a6e
Merge pull request #29775 from woocommerce/try/repeatable-onboarding-flow
...
update onboarding flow modal checks
2021-04-29 11:49:05 +02:00
Ron Rennick
6910b2080a
Merge branch 'trunk' into try/individual-test-files
2021-04-28 14:28:27 -03:00
Ron Rennick
f7447b12fa
remove debug code
2021-04-28 14:27:32 -03:00
Ron Rennick
08599ea206
use evalAndClick on add coupon button
2021-04-28 12:15:13 -03:00
Ron Rennick
779cfc89d4
Merge branch 'trunk' into try/repeatable-onboarding-flow
2021-04-28 10:18:39 -03:00
Nestor Soriano
10adec6b88
Improvements in the engine behind the debug tools page.
...
Two new optional keys have been added to the tool definition array:
- 'disabled': when true the tool button will appear disabled.
- 'needs_refresh': when running a tool, by default the tool definitions
are retrieved first, then the selected tool is executed,
then the definitions previously retrieved are rendered.
When this key is true the tool definitions are retrieved again
after execution, useful for cases where the tool description
or button enable/disable state changes after the tool execution.
Also now if a tool execution throws an exception a notice will be
shown with the execption message, previously the exception
was unhandled.
2021-04-28 10:24:23 +02:00
Ron Rennick
0d7388e9d4
update for feedback, better wait impementation
2021-04-27 17:45:21 -03:00
Ron Rennick
d67e340548
Merge branch 'trunk' into fix/order-search-test
2021-04-27 16:42:42 -03:00
Ron Rennick
6382ab0e66
give cart and checkout coupon tests unique titles
2021-04-27 16:27:35 -03:00
Ron Rennick
9369810682
update onboarding flow modal checks
2021-04-27 15:41:50 -03:00
Ron Rennick
df3d3f2a37
return test name when there is no screenshot
2021-04-27 13:50:39 -03:00
roykho
b69f46d7d2
Add unit tests
2021-04-27 09:29:24 -07:00
Ron Rennick
cf3387df87
Merge branch 'trunk' into e2e/remove-unused-product-import
2021-04-27 11:54:20 -03:00
Ron Rennick
f3652e2def
update both customer billing and shipping
2021-04-27 11:16:44 -03:00
Ron Rennick
70ff64d427
add the billing address to the customer account
2021-04-26 23:44:58 -03:00
Ron Rennick
b63a166dbb
user customer user for order search
2021-04-26 14:44:44 -03:00
Ron Rennick
f46c2fbf0b
Merge pull request #29737 from woocommerce/e2e/e2e-fix-flaky-checkout-test
...
Fixed checkout coupons flaky scenario in e2e suite
2021-04-26 13:16:44 -03:00
Ron Rennick
4208207e9c
add backbone unblocking
2021-04-26 12:31:09 -03:00
Ron Rennick
2511fce3a7
remove unused product import function from jest setup script
2021-04-26 10:41:46 -03:00
Ron Rennick
b1c6337c49
Merge pull request #29743 from woocommerce/fix/calculate-shipping-flakiness
...
Logout merchant and clear the cart before running tests
2021-04-26 10:23:45 -03:00
Ron Rennick
c315e37c1c
switch to individual test files
2021-04-26 09:52:58 -03:00
Veljko
01d0f45088
Update functions instead scenario
2021-04-23 20:03:48 +02:00
Jonathan Sadowski
cd7b8ee30f
Fix unit tests for new default USD currency
2021-04-23 10:03:05 -05:00
Jonathan Sadowski
55ab8cb966
Set USD as default store currency
2021-04-23 09:29:12 -05:00
Veljko
9e3a883478
Merge branch 'e2e/e2e-fix-flaky-checkout-test' into e2e/e2e-merchant-initiate-wccom
2021-04-22 21:27:41 +02:00
Greg
82348d023d
Logout merchant and clear the cart before running tests
2021-04-22 11:37:12 -06:00
Veljko
00e1ca530e
Fixed checkout coupons flaky scenario
2021-04-22 14:50:31 +02:00
Roy Ho
03d4d4893e
Merge pull request #28187 from woocommerce/fix/25900-take-2
...
Fix: image size customisation controls not shown when theme doesn't define them but Woo core does
2021-04-22 05:41:57 -07:00
Veljko
e5ced9498c
Add missing merchant login
2021-04-22 14:39:21 +02:00
Veljko
29f11a5b5a
Added new e2e test to initiate wccom connect
2021-04-22 12:42:50 +02:00
Veljko
fd85f8239b
Update test scenarios to cover both flows
2021-04-22 10:21:36 +02:00
Veljko
ce2f04feeb
Added new scenario of non-virtual product
2021-04-22 09:47:49 +02:00
Ron Rennick
c4074e7bf2
update order coupon test to use api, evalAndClick
2021-04-21 14:45:45 -03:00
Veljko
64f15fc284
Rename test scenario
2021-04-21 14:52:29 +02:00
Nestor Soriano
3a895c9eed
Move ThemeSupport class to Internal namespace, and use in 2021 theme.
2021-04-21 12:57:56 +02:00
Ron Rennick
6ece4bc82d
remove duplicate publish in product test
2021-04-20 18:11:30 -03:00
Roy Ho
e4fec5b914
Merge pull request #29721 from woocommerce/fix/29525
...
Modify wc_get_low_stock_amount function to always return a number
2021-04-20 11:56:27 -07:00
Ron Rennick
5feb03e9a7
export send to slack utils, add unblock check to variable product test
2021-04-20 13:32:14 -03:00
Nestor Soriano
b88eb4c981
Rename "assertIsInt" to "assertIsInteger" and make it static
...
- Renaming to prevent conflicts with the existing method in
the newer PHPUnit used in PHP 8.
- Making it static because "assertIsInt" is static too, so it'll be
easier to replace in the future.
2021-04-20 17:16:59 +02:00
Nestor Soriano
d11a20b5b4
Merge branch 'trunk' into fix/25900-take-2
2021-04-20 16:08:45 +02:00
Nestor Soriano
76a613a5bb
Modify wc_get_low_stock_amount so that it always returns an integer.
...
Previously, if the product didn't have an explicit low stock value
amount the value of the woocommerce_notify_low_stock_amount option,
which is a string, was returned verbatim.
Also, update related unit tests to create the option value as a string,
and to check that the value returned by woocommerce_notify_low_stock_amount
is always an integer.
2021-04-20 10:17:50 +02:00
Nestor Soriano
1008835488
Fix code sniffer violations in stock functions and its tests
2021-04-20 09:42:07 +02:00
Ron Rennick
40e887103b
add coupon debug screenshot
2021-04-19 16:51:46 -03:00
Ron Rennick
511d7ed0fe
replace waitfor delay with network idle
2021-04-19 16:02:30 -03:00
Ron Rennick
a76b95e3dd
increase order filter test before all timeout
2021-04-19 14:49:35 -03:00
Ron Rennick
682e6bd003
Merge branch 'trunk' into fix/order-search-test
2021-04-19 11:35:32 -03:00
roykho
98901dc9ec
Merge branch 'trunk' into fix/29540
2021-04-16 13:51:12 -07:00
Greg
1b8e0c2b04
Merge pull request #29616 from woocommerce/e2e/e2e-shopper-calculate-shipping
...
Add new e2e test shopper cart calculate shipping
2021-04-16 14:23:39 -06:00
roykho
c73ce8ea04
Convert to using internal DI container
2021-04-16 12:23:40 -07:00
Veljko
1c7bec0489
Remove shipping zones remover
2021-04-16 21:22:34 +02:00
Veljko
23e09d33dd
Add shipping zones remover
2021-04-16 14:11:27 +02:00
Vedanshu Jain
d79e86932b
Merge pull request #29654 from woocommerce/fix/29499
...
Set US:CA as the default store location
2021-04-16 16:54:50 +05:30
Veljko V
a2f8216b9b
Merge branch 'trunk' into e2e/e2e-shopper-calculate-shipping
2021-04-16 11:51:52 +02:00
Greg
87a6ebf03f
Merge pull request #29693 from woocommerce/e2e/e2e-shopper-order-email-received
...
Add new e2e test shopper order email receiving
2021-04-15 15:20:52 -06:00
Veljko
1bc0b25f0c
Fix spaces
2021-04-15 14:30:06 +02:00
Veljko
5c633e1c3b
Add deleting email logs if any
2021-04-15 14:01:28 +02:00
Veljko
950d08b7a5
Add new e2e test shopper order email receiving
2021-04-15 13:28:25 +02:00
Veljko
a075232434
Updated code for calculating prices
2021-04-15 10:06:06 +02:00
Veljko V
80baefe89a
Merge branch 'trunk' into e2e/e2e-shopper-calculate-shipping
2021-04-15 09:10:35 +02:00
Ron Rennick
fb0b51d330
merge trunk
2021-04-14 21:16:42 -03:00
Greg
d496e8e3db
Merge pull request #29623 from woocommerce/e2e/28485-resets
...
[WIP] Reset a test site
2021-04-14 16:09:09 -06:00
Ron Rennick
a1ec304f44
add waits for idle in add product to order
2021-04-14 16:09:23 -03:00
roykho
427be84875
Add unit tests
2021-04-14 11:54:13 -07:00
Ron Rennick
2c13c994b2
add screenshot utility
2021-04-14 10:05:03 -03:00
Veljko V
2b82c60107
Merge branch 'trunk' into e2e/e2e-shopper-calculate-shipping
2021-04-14 10:21:56 +02:00
Greg
baae57baf5
Merge pull request #29652 from woocommerce/fix/slackbot-instructions
...
Add step to slackbot instructions
2021-04-13 14:49:40 -06:00
Greg
d06bb5b1e6
Merge pull request #29592 from woocommerce/e2e/e2e-shopper-cart-redirection
...
Add new e2e test shopper cart redirection
2021-04-13 14:40:39 -06:00
Nestor Soriano
cf9300bbbc
Refactor in the WC_Settings_Page class for PHP 8 compatibility
...
- Turn get_settings into a parameterless method, but accept one
parameter via func_get_arg; and mark the method as deprecated.
- Rename the existing get_settings to get_settings_for_section;
and mark the method as final.
- Rename the existing get_settings_for_section to get_settings_for_section_core.
See the comment added to get_settings for the rationale for the change.
2021-04-13 12:45:42 +02:00
Tam Mullen
ea30866687
Merge pull request #29468 from woocommerce/e2e/e2e-merchant-orders-add-order-complex
...
E2e/e2e merchant orders add order complex
2021-04-13 10:16:50 +01:00
Veljko V
d9f6f40ac9
Merge branch 'trunk' into e2e/e2e-shopper-cart-redirection
2021-04-13 09:24:25 +02:00
Veljko V
d8ff7c02b8
Merge branch 'trunk' into e2e/e2e-shopper-calculate-shipping
2021-04-13 09:23:18 +02:00
rodel-calasagsag
a094b185d3
Removed unused faker dependency
2021-04-12 22:52:54 -07:00
roykho
ded5c9c7c4
Update unit tests to reflect new base address
2021-04-12 14:13:27 -07:00
Ron Rennick
4480e110f4
update core tests & utils readmes
2021-04-12 14:33:00 -03:00
roykho
6c7c420d25
Set US:CA as the default store location
2021-04-12 09:28:30 -07:00
Ron Rennick
96000d81d0
add step to slackbot instructions
2021-04-12 13:19:34 -03:00
Nestor Soriano
56cc063d7f
Rename "get_settings" to "get_settings_for_section" in settings pages.
...
In PHP 8 overriding a method having an optional parameter with a
method having no parameters throws an error, thus we can't use
the strategy of changing "get_settings()" to "get_settings($section='')"
without breaking existing extensions. So we do the following instead:
- Rename the existing "get_settings" to "get_settings_for_section"
- Rename the existing "get_settings_for_section" to "get_settings_for_section_core"
- Add a "get_settings" that just does "get_settings_for_section('')"
for compatibility, but mark it as deprecated.
2021-04-12 18:04:41 +02:00
Nestor Soriano
ca46992c00
Adjustments in settings pages after a merge with conflicts.
2021-04-12 15:55:45 +02:00
Ron Rennick
5f1e9c2ce5
Merge pull request #29527 from woocommerce/dependabot/npm_and_yarn/tests/e2e/api/y18n-4.0.1
...
Bump y18n from 4.0.0 to 4.0.1 in /tests/e2e/api
2021-04-12 10:48:08 -03:00
Ron Rennick
d950a3298e
Merge pull request #29467 from woocommerce/e2e/e2e-merchant-settings-add-shipping-classes
...
E2e/e2e merchant settings add shipping classes
2021-04-12 10:45:25 -03:00
Claudio Sanches
a761e78a84
Fixed unit tests
2021-04-12 12:50:21 +02:00
Nestor Soriano
65c1c9ec54
Fix unit tests after merging from trunk
2021-04-12 12:50:21 +02:00
Nestor Soriano
d820fbe4a7
Fix wrong handling of the shipping - shipping options section.
2021-04-12 12:42:40 +02:00
Nestor Soriano
e5f234ec0f
Re-implement the flushing of the term count cache that was lost on merge
...
Also add unit tests for it.
2021-04-12 12:42:39 +02:00
Nestor Soriano
8a60e7e147
Move code hacker resetting from BeforeTestHook to setUp
...
The code hacker needs to be reset before each test. This was done via
a couple of classes implementeing BeforeTestHook, those were registered
in phpunit.xml.
The problem is that the PHPUnit version used for WooCommerce unit test
has recently been changed from 7.5 to 6.5 for compatibility with
PHP 7.0, and hook classes were introduced in PHPUnit 7. Thus no hooks
were ran, the code hacker wasn't reset, that caused some functions
to remain hacked between tests, and this made some tests to fail.
The solution is to move the code hacker reset to the setUp method
in the base unit test class.
2021-04-12 12:42:39 +02:00
Nestor Soriano
7440e95b72
Fix unit tests after merge from master
2021-04-12 12:42:39 +02:00
Nestor Soriano
bcf24f0f8c
Fix unit test problems in PHP 7.0.
...
This includes removing two array_merge and array_merge_eecursive
statements in the code hacker, that apparently were working differently
in PHP 7.0.
2021-04-12 12:42:39 +02:00
Nestor Soriano
5a11d9e064
Refactor the settings pages, and add unit tests for them.
...
This commit fixes some inconsistencies in the settings pages, and
makes all the existing pages extensible by adding new sections
(that was possible in some pages, but not in others). Main changes:
1. Modify the 'get_sections' method so that it invokes a new protected
'get_own_sections' method and then triggers the
'woocommerce_get_sections_' . id filter.
This way the filter is triggered only in the base class
and not in each of the derived classes too.
2. Change the get_settings() method so that it has its signature
changed to get_settings( $current_section = '' )
in the base class and in all the derived class.
Some derived classes were already using this signature, but others
(those not having multiple sections natively) weren't, making then
effectively impossible to define multiple sections for these pages
via filters.
With this change all the section pages act consistently and allow
both adding new settings to the default "General" section
and creating new sections via filters.
3. Change the implementation of 'get_settings' in the base class
so that it searches for a 'get_settings_for_{section_id}_section'
method in the class and executes it, otherwise it executes the new
protected method get_settings_for_section( $current_section ); then
it triggers the 'woocommerce_get_settings_' . id filter.
This makes it easier to separate the code that returns the list
of filters in multiple methods, one per section, instead of using
one big if-else-else... block.
So now instead of overriding get_settings($current_section='') derived
classes need to implement get_settings_for_{$current_section}_section
for each section, or override get_settings_for_section($current_section)
or both. 'get_settings_for_section' returns an empty array by default.
Also, 'woocommerce_get_settings_' . id is triggered in one single
place too.
Other improvements:
* Remove duplicated code from 'output' in 'WC_Settings_Page' children.
Some classes inherited from 'WC_Settings_Page' override the 'output'
method with custom code, which in all cases ended up repeating the code
of the original method as a fallback. These repetitions have been
replaced with 'parent::output()'.
* Fix inconsistencies for 'save' and 'output' in WC_Settings_Tax/Emails
The 'WC_Settings_Tax' and 'WC_Settings_Emails' classes had some
inconsistencies in their 'save' and 'output' methods that prevented the
proper creation new sections and the addition of new settings via the
'woocommerce_get_sections_' and 'woocommerce_get_settings_' filters.
Now they work as expected.
* Deduplicate parts of 'save' in 'WC_Settings_Page' and children.
Two methods have been added to 'WC_Settings_Page' class:
'save_settings_for_current_section' and 'do_update_options_action'.
These are intended to be invoked by derived classes in their 'save'
methods, in order to remove code repetition.
* Add some helper methods to WC_Unit_Test_Case.
Methods added:
- assertOutputsHTML
- assertEqualsHTML
- normalize_html
- capture_output_from
2021-04-12 12:42:26 +02:00
Ron Rennick
a517d88132
merge trunk
2021-04-09 17:08:17 -03:00
Ron Rennick
c94ddb8803
update package changelogs, minor fixes from full PR review
2021-04-09 16:39:30 -03:00
Ron Rennick
fcbbb12a8a
add retry support
2021-04-09 16:15:00 -03:00
Veljko
bdd9fe7318
Add waitForNavigation on Continue clicking
2021-04-09 11:48:17 +02:00
Rodel Calasagsag
11dce13701
Merge branch 'trunk' into e2e/e2e-merchant-settings-add-shipping-classes
2021-04-08 22:17:40 -07:00
Veljko
bc40163155
Make the test more granular
2021-04-08 19:01:54 +02:00
Veljko
d4d93f9239
Remove shipping method deletion
2021-04-08 18:18:59 +02:00
Veljko
fc14a4e5da
Add missing beforeAll code
2021-04-08 17:20:03 +02:00
Veljko
a9ce07c020
Update test
2021-04-08 17:11:29 +02:00
Tam Mullen
59ed09157b
Merge pull request #29426 from woocommerce/e2e/e2e-merchant-import-products
...
Add new e2e test merchant import products via CSV file
2021-04-08 14:46:31 +01:00
Veljko
4fed8f8dab
Add missing jest/global
2021-04-08 15:09:59 +02:00
Veljko
7a1ba36fc9
Added new component and updated tests
2021-04-08 12:41:02 +02:00
Néstor Soriano
439d26be82
Merge pull request #29606 from woocommerce/fix/29545
...
Don't verify empty country codes on checkout
2021-04-08 12:40:13 +02:00
Veljko
b195e354a2
Make test more granular
2021-04-08 11:44:54 +02:00
Veljko
6574db5c2c
Add additional test scenarios
2021-04-08 10:43:07 +02:00
Veljko
615bb66d41
Revert timeout back and split test
2021-04-08 10:09:12 +02:00
Veljko
ca4d690c5c
Try with 45s timeout
2021-04-08 09:19:47 +02:00
Ron Rennick
4732a09b23
minor fixes from visual diff
2021-04-07 23:06:00 -03:00
Ron Rennick
d025f47449
allow multiple runs of setup/onboarding
2021-04-07 22:54:25 -03:00
Ron Rennick
86e83b6560
reset onboarding, shipping, tracking
2021-04-07 19:25:09 -03:00
Roy Ho
8052fbe7be
Merge pull request #29605 from woocommerce/fix/28759-billing-shipping-addresses
...
Fix/28759 billing shipping addresses
2021-04-07 14:34:01 -07:00
Claudio Sanches
ec77c3bcc9
Merge pull request #29603 from masteradhoc/masteradhoc-accessibility-strikethrough-price
...
Improve WooCommerce Accessibility - Strikethrough Price
2021-04-07 13:41:08 -03:00
Veljko
9fdbaae76e
Add changelog and update spaces
2021-04-07 17:52:58 +02:00
Veljko
a6467681c8
Add new e2e test shopper cart calculate shipping
2021-04-07 17:50:09 +02:00
Nestor Soriano
a37b2a7474
Don't verify empty country codes on checkout
...
PR #28849 introduced a verification of the posted country code
on checkout, so an invalid code will throw an error. However there
are cases when an empty code is legitimately received, for example
when using Paypal checkout directly from the product page and
the customer doesn't have an address in his Paypal profile.
2021-04-07 09:59:56 +02:00
Barry Hughes
87cdcff52d
Merge branch 'trunk' into fix/28759-billing-shipping-addresses
2021-04-06 17:22:52 -07:00
Brian
778cf448cb
Update data.php
...
fix legacy code test
2021-04-06 23:56:28 +02:00
Brian
50b882905f
Update data.php
...
fix legacy tests
2021-04-06 23:44:36 +02:00
Brian
913c46ac91
Update functions.php
...
fix legacy test
2021-04-06 23:43:53 +02:00
Veljko V
be44da32de
Merge pull request #29551 from woocommerce/fix/allow-local-slackbot
...
Allow local slackbot
2021-04-06 16:35:48 +02:00
rodel-calasagsag
fb5ccc14a1
Consistent faker version
2021-04-06 02:26:58 -07:00
Rodel Calasagsag
da4d294e29
Merge branch 'trunk' into e2e/e2e-merchant-settings-add-shipping-classes
2021-04-06 01:26:12 -07:00
rodel-calasagsag
1d77f607b0
Changed property tax_class to taxClass
2021-04-06 01:09:30 -07:00
Greg
5aeafe56eb
Merge pull request #29571 from woocommerce/add/smoke-test-daily
...
add smoke test daily log in
2021-04-05 13:32:22 -06:00
Ron Rennick
8bfb2fa8df
Merge pull request #29544 from woocommerce/fix/empty-cart-remove-coupons
...
Remove all coupons before each test run, and clear cart
2021-04-05 16:11:38 -03:00
Veljko V
5cb034fdc7
Merge branch 'trunk' into e2e/e2e-shopper-cart-redirection
2021-04-05 17:55:48 +02:00
Veljko V
701d7fa183
Merge branch 'trunk' into e2e/e2e-merchant-import-products
2021-04-05 17:50:32 +02:00
Veljko
45fdc3451c
Add new e2e test shopper cart redirection
2021-04-05 15:53:49 +02:00
Veljko
9d1b347148
Add spacing and missing await
2021-04-05 11:25:15 +02:00
rodel-calasagsag
dee400cd84
Make product names unique
2021-04-04 06:29:19 -07:00
rodel-calasagsag
3d8e27e06a
Changed currency to USD
2021-04-04 03:44:40 -07:00
rodel-calasagsag
8de05f8e5b
Added 'faker' dependency
2021-04-04 02:26:53 -07:00
Rodel Calasagsag
cb53050892
Merge branch 'trunk' into e2e/e2e-merchant-settings-add-shipping-classes
2021-04-04 01:47:33 -07:00
rodel-calasagsag
68df2796a9
Added 'faker' dependency
2021-04-04 01:39:57 -07:00
rodel-calasagsag
e39badbcf7
Fixed missing semi-colons and other styling issues
2021-04-04 01:26:27 -07:00
rodel-calasagsag
8d4ebb935e
Add missing exports for this test
2021-04-04 01:20:59 -07:00
Veljko V
b850ba3f84
Merge branch 'trunk' into e2e/e2e-merchant-import-products
2021-04-02 09:52:45 +02:00
Veljko V
93ceea1854
Merge branch 'trunk' into e2e/e2e-shopper-login-checkout
2021-04-02 09:51:52 +02:00
Ron Rennick
9355c92231
add smoke test daily log in
2021-04-01 21:55:38 -03:00
Greg
e39f2ecd4f
Merge pull request #29565 from woocommerce/e2e/e2e-shopper-my-account-create
...
Added new e2e test my account create account
2021-04-01 15:44:05 -06:00
zhongruige
b1d0f4eab0
Add missing semicolon
2021-04-01 12:51:04 -06:00
Ron Rennick
a5b612b0a8
Merge branch 'trunk' into fix/allow-local-slackbot
2021-04-01 14:48:46 -03:00
Veljko
daf41aadb9
Merge branch 'trunk' into e2e/e2e-shopper-login-checkout
2021-04-01 19:35:29 +02:00
Greg
e5c2e32a7b
Merge pull request #29549 from woocommerce/e2e/e2e-fix-flaky-order-searching
...
Fix flakiness in Merchant's Order Searching test
2021-04-01 11:29:08 -06:00
Greg
a4ef0b0b1d
Merge pull request #29548 from woocommerce/e2e/e2e-fix-flaky-shipping-zones
...
Fix flakiness in Merchant's Add Shipping Zones test
2021-04-01 11:02:00 -06:00
Ron Rennick
13f6cf4819
Merge pull request #29557 from woocommerce/fix/e2e-onboarding-fkakiness
...
Fix for e2e flakiness in onboarding wizard
2021-04-01 12:51:43 -03:00
Veljko
29f47f2289
Fixed spaces in the code
2021-04-01 16:24:26 +02:00
Veljko
1676c0d8a3
Added new e2e test shopper create account
2021-04-01 15:38:53 +02:00
Veljko
eb6572fec0
Added new e2e test shopper login checkout
2021-04-01 11:10:43 +02:00
Roy Ho
8b6e4ac519
Merge pull request #29542 from woocommerce/fix/23682.1
...
Update UID only for WooCommerce cookies
2021-03-31 16:05:28 -07:00
zhongruige
beb63625ac
Use checkbox specific utils and verify it's checked before continuing
2021-03-31 14:26:36 -06:00
𝓑𝓪𝓻𝓻𝔂 𝓗𝓾𝓰𝓱𝓮𝓼
095b3e9fb9
Merge latest changes from trunk.
2021-03-31 10:25:25 -07:00
Veljko
6cb79fb90d
Improve test and fix flakiness
2021-03-31 17:59:09 +02:00
Roy Ho
e4502fe314
Merge pull request #29495 from woocommerce/fix/29472
...
Add "postcodes" and "cities" support for the REST API tax rate creation/update endpoint
2021-03-31 08:17:31 -07:00
Veljko
f882aba670
Another attempt to fix flakiness
2021-03-31 16:50:41 +02:00
Veljko
b2dd7f9057
Add type instead of select
2021-03-31 16:06:07 +02:00
Ron Rennick
8cb816add9
silence channel_not_found warning
2021-03-31 10:08:00 -03:00
Ron Rennick
a720f00a2d
allow slackbot to function from local environment
2021-03-31 10:00:42 -03:00
Veljko
4e1b24044f
Fix flakiness in the test
2021-03-31 13:59:00 +02:00
Nestor Soriano
64e903f65f
Update REST API v3 taxes endpoint descriptions with deprecation/introduction information.
2021-03-31 12:41:53 +02:00
Nestor Soriano
8ff664e758
Fix "doing wrong wpdb::prepare" notice for REST API get taxes endpoint.
2021-03-31 12:09:20 +02:00
Veljko
110c31d078
Remove unnecessary postcode
2021-03-31 10:36:47 +02:00
Veljko
c9cd12f5e8
Fix flakiness in the test
2021-03-31 10:01:41 +02:00
Veljko V
183a4bd2cd
Merge branch 'trunk' into e2e/e2e-merchant-import-products
2021-03-31 08:43:03 +02:00
zhongruige
ce9a581c57
Typo fix
2021-03-30 16:22:02 -06:00
zhongruige
e856ad7b26
Updated changelog and README
2021-03-30 16:11:50 -06:00
zhongruige
3e0caaac5c
Remove all coupons before each test run, and clear cart
2021-03-30 16:03:52 -06:00
Claudio Sanches
2da3a37450
Added unit test
2021-03-30 14:11:33 -03:00
Veljko
84b9713cf9
Fix spaces in merchant
2021-03-30 18:23:48 +02:00
Veljko V
a8ab058fb5
Merge branch 'trunk' into e2e/e2e-merchant-analytics-pagechecks
2021-03-30 18:19:21 +02:00
Greg
0342ed782b
Merge pull request #29493 from woocommerce/e2e/e2e-shopper-checkout-new-account
...
Add new e2e test shopper / checkout / create an account
2021-03-30 08:04:26 -06:00
Néstor Soriano
8e57d58555
Merge pull request #29474 from woocommerce/fix/27290-take-2
...
Fix the REST API entry point to add coupons to an order.
2021-03-30 09:22:27 +02:00
Veljko
0ee581e662
Fix spaces issue
2021-03-30 08:48:20 +02:00
Ron Rennick
6d36055328
bump e2e-utils version
2021-03-29 17:58:59 -03:00
Ron Rennick
64d935470c
Merge branch 'trunk' into fix/remove-core-test-import
2021-03-29 13:44:22 -03:00
dependabot[bot]
609c72c695
Bump y18n from 4.0.0 to 4.0.1 in /tests/e2e/api
...
Bumps [y18n](https://github.com/yargs/y18n ) from 4.0.0 to 4.0.1.
- [Release notes](https://github.com/yargs/y18n/releases )
- [Changelog](https://github.com/yargs/y18n/blob/master/CHANGELOG.md )
- [Commits](https://github.com/yargs/y18n/commits )
Signed-off-by: dependabot[bot] <support@github.com>
2021-03-29 16:43:02 +00:00
Ron Rennick
3d50da02b8
Merge pull request #29440 from woocommerce/fix/29277-release
...
update changelogs, bump package versions
2021-03-29 13:41:52 -03:00
Nestor Soriano
ccb8cbddac
Adjust tests for WC_Admin_Dashboard_Setup (consider 'payments' task)
2021-03-29 17:39:58 +02:00
rodel
39e58101a5
Fixed product setup.
...
Re-enabled all merchant tests.
2021-03-28 18:03:47 +08:00
rodel
45ea52f762
WIP: re-construct products
2021-03-28 12:31:20 +08:00
rodel
24c456b440
revert default.json
2021-03-27 18:56:18 +08:00
𝓑𝓪𝓻𝓻𝔂 𝓗𝓾𝓰𝓱𝓮𝓼
f0c164d2d4
Do not copy fields from the billing address to the shipping address. | #28759
2021-03-26 17:08:37 -07:00
Ron Rennick
fd77beb9af
use require instead of import for faker
2021-03-26 11:23:28 -03:00
Ron Rennick
4f6c0ee13e
use require in core test
2021-03-25 15:28:21 -03:00
Veljko
5b3bc1665d
Updated core-tests-root file
2021-03-25 18:12:54 +01:00
Veljko
afd39e5866
Added core tests root and updated test
2021-03-25 15:59:00 +01:00
Nestor Soriano
b5e13bd771
Add support for "postcodes" and "cities" (arrays) fields to the
...
REST API endpoints for creating and updating taxes.
2021-03-25 14:56:40 +01:00
Nestor Soriano
8ec8daf65a
Add a do_rest_request method to WC_REST_Unit_Test_Case.
2021-03-25 14:56:34 +01:00
Veljko
29ed6bd6e7
Fix test to check for settings checkbox
2021-03-25 13:50:13 +01:00
Veljko
d6cc48c2e3
Fix spaces in code
2021-03-25 13:22:30 +01:00
Veljko
c13aa0f694
Added new e2e test checkout new account
2021-03-25 13:17:42 +01:00
Veljko
3feaba9a47
Update test to match with data state
2021-03-25 12:14:49 +01:00
Veljko
e1a3be4945
Added new e2e test opening analytics
2021-03-25 10:21:32 +01:00
Ron Rennick
8efbd3cbf5
Merge branch 'trunk' into fix/29277-release
2021-03-24 17:53:27 -03:00
Greg
94cd20f16e
Merge pull request #29313 from woocommerce/update/e2e-api-product-delete
...
delete vs trash product in e2e api
2021-03-24 14:25:12 -06:00
Ron Rennick
7529914a98
Merge branch 'trunk' into fix/29277-release
2021-03-24 16:15:03 -03:00
Ron Rennick
6efa5b7ba4
Merge pull request #29399 from woocommerce/fix/29277
...
Update E2E readme files for release
2021-03-24 16:09:34 -03:00
Nestor Soriano
2b8cac7cf2
Fix the REST API entry point to add coupons to an order.
...
- Check input (no 'id', has 'code') and throw an error if needed
before removing the existing coupons, so an invalid input
won't cause the loss of these existing coupons.
- Also, check that the coupon is actually valid as part of the
input check.
- Cache the coupon objects that are created during the input check,
and apply them directly.
- Don't check if 'coupon_lines' is an array and contains arrays,
that's already done by the REST API engine by looking at the schema.
- Adjust unit tests.
2021-03-24 15:19:34 +01:00
rodel
1d91947953
simplified steps and functions
2021-03-23 09:56:39 -07:00
rodel
867122574d
cleaned off todo comments
2021-03-23 09:19:21 -07:00
rodel
945d9a6a20
Added steps and verifications for tax classes
2021-03-23 09:17:47 -07:00
rodel
a24479d596
wip: setup taxes through API
2021-03-23 08:09:58 -07:00
Néstor Soriano
886cd15016
Merge pull request #29378 from woocommerce/fix/code-sniff
...
Remove Travis and fix CI in GitHub Actions
2021-03-23 15:22:49 +01:00
Veljko
dcee9ce109
Created test data folder and moved csv file
2021-03-23 14:09:31 +01:00
rodel
4f861c9b7a
wip: relocated product setup function
2021-03-23 05:00:56 -07:00
rodel
56bd958dde
wip: optimized steps
2021-03-23 04:57:29 -07:00
rodel
6f67a3a5b3
wip: fixed variable product initialization
2021-03-22 21:19:05 -07:00
rodel
2e667ae317
wip: setup products via API instead of UI
2021-03-22 07:41:41 -07:00
rodel
8614134887
wip: added variable and grouped products
2021-03-22 04:37:17 -07:00
rodel
ec994501ab
WIP: Add complex order test
2021-03-22 03:50:14 -07:00
rodel
a17a629f3f
re-enabled merchant tests
2021-03-21 06:09:12 -07:00
rodel
2c3bec8429
Tests for "Add shipping classes"
2021-03-21 06:07:50 -07:00
rodel
f19f39aabb
wip: first test in add shipping classes
2021-03-21 05:17:37 -07:00
Veljko
d578914a9d
Remove after all scenario
2021-03-19 17:29:48 +01:00
Ron Rennick
99b45ff583
update changelogs, bump package versions
2021-03-19 13:13:14 -03:00
Veljko
dc23f3a522
Remove removing products from before all
2021-03-19 13:50:23 +01:00
Veljko
783e232227
Add removing products before all
2021-03-19 13:04:00 +01:00
Veljko
fe51a15dcb
Add after all scenario
2021-03-19 11:58:20 +01:00
Veljko
cc5b57da94
Fix test and correct scenario
2021-03-18 23:48:36 +01:00
Veljko
1e9a4dd6ba
Improve test scenario
2021-03-18 21:35:07 +01:00
Veljko
f39d7531f8
Fix spaces in the code
2021-03-18 18:02:42 +01:00
Veljko V
24747c1713
Merge branch 'trunk' into e2e/e2e-merchant-import-products
2021-03-18 17:27:50 +01:00
Veljko
9c32f421b7
Add new scenario and update changelogs
2021-03-18 17:23:44 +01:00
Veljko
4f98833094
Add first test import products
2021-03-18 13:42:59 +01:00
Veljko
f73fdfa4f6
First part of the test
2021-03-18 12:11:38 +01:00
Ron Rennick
e25ee7f36c
fix merge conflicts
2021-03-17 16:40:49 -03:00
Greg
fed4e14459
Merge pull request #29413 from woocommerce/fix/e2e-shipping-test
...
Attempt to fix flakiness in shipping test
2021-03-17 13:17:07 -06:00
Ron Rennick
ddb940e993
Attempt to fix flakiness in shipping test
...
- Work around Delete and Edit action links not being visible
- delete all shipping zones at beginning of test
- use uiUnBlock instead of page wait
- ensure clicking method edit OK button
2021-03-17 14:48:06 -03:00
Greg
b6f3c2b0be
Merge pull request #29383 from woocommerce/e2e/e2e-fix-flaky-checkout-coupons
...
Fixed flaky e2e test checkout coupons
2021-03-17 08:49:14 -06:00
Veljko V
f65c493e38
Merge branch 'trunk' into e2e/e2e-merchant-search-orders
2021-03-17 09:07:51 +01:00
Néstor Soriano
17224d0ab1
Merge pull request #29345 from woocommerce/hw/low-stock-threshold-for-variations
...
Low stock threshold for variations
2021-03-17 08:59:32 +01:00
Greg
c3e765642c
Merge pull request #29104 from woocommerce/e2e/e2e-merchant-settings-shipping-zones
...
Add new e2e test merchant shipping zones test
2021-03-16 19:07:24 -06:00
Ron Rennick
a3aacf5661
update utils readme
2021-03-16 16:57:42 -03:00
Ron Rennick
ed4f3af997
update/expand core tests and api readmes
2021-03-16 16:00:01 -03:00
Ron Rennick
34ef87acd3
Merge branch 'trunk' into fix/29277
2021-03-16 13:33:30 -03:00
Ron Rennick
48dc56d32a
update e2e main and env readmes
2021-03-16 11:06:44 -03:00
Ron Rennick
53451e5b36
update init-wp-beta.sh with changes to initialize.sh
2021-03-16 10:54:47 -03:00
Tam Mullen
a7bceeb50f
Merge pull request #28818 from woocommerce/e2e-shopper-pay-order
...
Add new e2e test shopper my account pay order
2021-03-16 13:26:21 +00:00
Peter Fabian
351c07d655
Improved tests, added save points, fixed comments.
2021-03-16 13:08:29 +01:00
Veljko
58d85a8321
Merge branch 'trunk' into e2e/e2e-fix-flaky-checkout-coupons
2021-03-16 09:44:55 +01:00
Veljko
449f3809b4
Merge branch 'trunk' into e2e/e2e-merchant-search-orders
2021-03-16 09:07:37 +01:00
Veljko
1e59f49f08
Merging with trunk and improving test
2021-03-16 09:02:52 +01:00
Veljko
33978a5e5b
Merge branch 'trunk' into e2e/e2e-merchant-settings-shipping-zones
2021-03-16 08:54:18 +01:00
Greg
d7eb6d0b9e
Merge pull request #28851 from woocommerce/e2e/api/poc-delete-products
...
Use api to delete products before e2e tests
2021-03-15 16:22:12 -06:00
Peter Fabian
e6cdd74a79
Add parent's default for low stock if notthing is set on individual variation.
...
I.e. use variation low stock amount value, if not available, use parent product's value, if not available, use the store-wide default.
2021-03-15 18:31:31 +01:00
Ron Rennick
6031cd922e
Merge branch 'trunk' into e2e/api/poc-delete-products
2021-03-15 14:14:31 -03:00
Ron Rennick
372b721b1c
package lock maintenance, remove simple products in group product test
2021-03-15 14:04:37 -03:00
Ron Rennick
b64c99a8fb
Merge branch 'trunk' into update/e2e-api-product-delete
2021-03-15 13:47:56 -03:00
Ron Rennick
5d98dca84e
Merge branch 'trunk' into fix/e2e-wp57-cli
2021-03-15 13:40:33 -03:00
Veljko
5897027080
Fixed flaky test checkout coupons
2021-03-15 13:14:48 +01:00
Claudio Sanches
16823082aa
Removed Travis
2021-03-13 21:58:42 -03:00
Claudio Sanches
65cfa4866f
Better CI messages
2021-03-13 21:06:06 -03:00
Claudio Sanches
75ed94bd38
Fixed PHPCS run and added cs2pr support
2021-03-13 21:01:21 -03:00
Veljko
6d24f4dc22
Update test
2021-03-13 20:49:45 +01:00
Veljko
dfc38562ce
Improve test
2021-03-13 19:43:29 +01:00
Veljko
21307e6603
Add checker for existing shipping zones
2021-03-13 18:54:48 +01:00
Veljko
fc38b8961e
Update test case
2021-03-13 14:23:40 +01:00
Veljko
d1ca54514a
Reorder tests
2021-03-13 13:56:38 +01:00
Veljko
471f43fd33
Fix reordering tests
2021-03-13 13:49:06 +01:00
Veljko
959ace94e5
Improve page util
2021-03-13 12:59:33 +01:00
Veljko
92a127bcbb
Reorder test and improve code
2021-03-13 12:26:28 +01:00
Veljko
12e417ce71
Improve code
2021-03-13 11:55:44 +01:00
Veljko
88cdb83a55
Update test
2021-03-13 10:56:23 +01:00
Veljko V
a3cef15e08
Merge branch 'trunk' into e2e/e2e-merchant-settings-shipping-zones
2021-03-13 00:00:10 +01:00
Veljko
70ed073231
Improve test and util
2021-03-12 23:53:04 +01:00
Veljko
f903fdab29
Updated page util
2021-03-12 22:23:10 +01:00
Veljko
bde3d1c919
Merge branch 'try/add-e2e-screenshot' into e2e/e2e-merchant-search-orders
2021-03-12 21:49:59 +01:00
Ron Rennick
91a4283075
update changelog, readme, fix test broken to test the bot
2021-03-12 16:40:20 -04:00
Ron Rennick
3fa03509db
add token to channel join call, update package-lock
2021-03-12 15:40:09 -04:00
Ron Rennick
025b92d5da
output error on unknown error, expand PR info
2021-03-12 13:07:10 -04:00
Veljko
26a9abd85e
Merge branch 'try/add-e2e-screenshot' into e2e/e2e-merchant-search-orders
2021-03-12 17:55:53 +01:00
Ron Rennick
69f2ce608d
output error data on unknown error
2021-03-12 12:39:03 -04:00
Ron Rennick
26f2353be9
Merge branch 'trunk' into update/e2e-api-product-delete
2021-03-12 12:01:41 -04:00
Veljko
7e3abe0f33
Merge branch 'trunk' into e2e/e2e-merchant-search-orders
2021-03-12 17:00:42 +01:00
Ron Rennick
698fdc3712
Merge branch 'trunk' into try/add-e2e-screenshot
2021-03-12 12:00:24 -04:00
Veljko
3ae4e7b4bc
Merge branch 'try/add-e2e-screenshot' into e2e/e2e-merchant-search-orders
2021-03-12 09:26:20 +01:00
Jake Oehler Morrison
2f30a141bd
Include DB env vars on cli service in e2e tests
2021-03-11 16:19:34 +00:00
Peter Fabian
1b53b724b2
Fix existing tests.
2021-03-11 17:02:22 +01:00
Ron Rennick
d683e24259
explicitly join the slack channel
2021-03-11 10:46:04 -04:00
Ron Rennick
2c1b3b52a9
add order class and repository
2021-03-11 09:20:26 -04:00
Veljko
710e09687f
Merge branch 'trunk' into e2e-shopper-pay-order
2021-03-11 10:40:14 +01:00
Ron Rennick
1cda09d260
fix api package build errors
2021-03-10 15:24:34 -04:00
Ron Rennick
12c0793217
add token to calls, remove block from test title
2021-03-09 16:49:47 -04:00
Ron Rennick
bb907a6acd
add slack secrets, deliberately break test
2021-03-09 16:11:48 -04:00
Ron Rennick
f266f20101
delete vs trash product in e2e api
2021-03-09 13:45:05 -04:00
Ron Rennick
ca2cf3cef0
Merge branch 'trunk' into try/add-e2e-screenshot
2021-03-09 13:29:31 -04:00
Ron Rennick
d4f56c47a8
Merge branch 'trunk' into update/core-tests-group-api
2021-03-09 13:27:05 -04:00
Ron Rennick
9352dd1b81
Merge pull request #29309 from woocommerce/fix/e2e-product-search
...
Fix flaky issues with e2e product filter, search, sort test
2021-03-09 13:26:01 -04:00
Ron Rennick
0395457e0c
fix api package build errors
2021-03-09 11:33:29 -04:00
Ron Rennick
b389cdb76e
merge changelog with trunk
2021-03-09 10:39:15 -04:00
Ron Rennick
2d8ab6e2f8
include the current block in screenshot params
2021-03-09 10:19:43 -04:00
Ron Rennick
add5d73df2
update browse,search,sort test to be more reliable
2021-03-09 08:49:52 -04:00
Ron Rennick
c42e2db280
use api to create products for search test
2021-03-08 22:39:30 -04:00
Ron Rennick
4c88973039
add slack channel support
2021-03-08 19:22:55 -04:00
Ron Rennick
50e9ff2783
make screenshots optional
2021-03-08 16:56:47 -04:00
Ron Rennick
b686a45339
update package depenendencies
2021-03-08 16:17:27 -04:00
Jonathan Sadowski
4a5c6b86b3
Update e2e/env CHANGELOG for wc-e2e space fix
2021-03-08 14:06:14 -06:00
Ron Rennick
0e6d14b12d
create screenshot on e2e test failure
2021-03-08 15:07:29 -04:00
Jonathan Sadowski
e472c99a5c
Fix E2E shorthand script to allow for directories with spaces
2021-03-08 11:38:41 -06:00
Ron Rennick
1664ece7eb
use valid tax status on fees
2021-03-08 09:59:46 -04:00
Ron Rennick
b05a97e2c0
add order types
2021-03-07 23:06:48 -04:00
Veljko
ed9b4762ae
Update test and utils methods
2021-03-07 15:46:03 +01:00
Veljko V
1fb27ec3dd
Merge branch 'trunk' into e2e/e2e-merchant-search-orders
2021-03-06 12:13:18 +01:00
Veljko
94f83cb859
Revert changes and add waits
2021-03-06 12:09:12 +01:00
Ron Rennick
7261813fc9
Merge branch 'trunk' into fix/27873
2021-03-05 23:47:41 -04:00
Ron Rennick
03c60b988b
add order classes
2021-03-05 23:44:16 -04:00
Ron Rennick
30d7b2ce9d
Merge pull request #29270 from woocommerce/add/merchant-order-email-flow
...
Add merchant order email flow e2e test
2021-03-05 11:21:13 -04:00