Veljko V
cbda8b17bb
Update changelog for core tests
2021-01-14 17:30:58 +01:00
Veljko V
d569717808
Update scenario of shopper paying his order
2021-01-14 17:19:06 +01:00
Veljko V
50d601355c
Update scenario shopper can pay his order
2021-01-14 14:22:39 +01:00
Veljko V
98823ba8d0
Add new e2e test case customer can pay for his order
2021-01-14 13:45:12 +01:00
Néstor Soriano
b36a06ca08
Merge pull request #27844 from woocommerce/php8/use-custom-phpunit-7
...
[PHP 8] Use a custom version of PHPUnit 7 for PHP 8 compatibility
2021-01-14 11:46:01 +01:00
Ron Rennick
b477cb8d3a
only activate WooCommerce in E2E initialization ( #28588 )
...
* only activate WooCommerce in E2E initialization
* use project basename for default plugin path
2021-01-13 12:27:11 +01:00
Roy Ho
d4849c598c
Merge pull request #28692 from woocommerce/fix/28582
...
Add protective check to make sure WC()->session is initialized before loading the data store.
2021-01-08 07:55:35 -08:00
Ron Rennick
5f7b71c543
update readme and package change log
2021-01-08 15:04:47 +01:00
Ron Rennick
96ab0d8d7f
include package.json updates
2021-01-08 15:04:47 +01:00
Ron Rennick
a7014d5496
introduce wc-e2e shorthand script
2021-01-08 15:03:12 +01:00
Ron Rennick
597ec5f9c3
WIP
2021-01-08 15:03:12 +01:00
Nestor Soriano
9d892f0678
Add a section about testing in PHP 8 in tests/README
2021-01-08 09:04:42 +01:00
Ron Rennick
6d402c96c8
Merge pull request #28017 from woocommerce/fix/25643
...
Fix E2E variable product test
2021-01-06 14:39:19 -04:00
Ron Rennick
7959ba3d16
Merge pull request #28045 from woocommerce/fix/28012
...
add support for custom E2E container name
2021-01-06 13:52:42 -04:00
vedanshujain
b0cc43a188
More for individual fields in responses for V2 and V3 products and orders endpoints.
2021-01-06 16:04:56 +05:30
vedanshujain
e546c237b7
Add tests for checking all fields are returned even requested individually.
2021-01-06 15:12:55 +05:30
vedanshujain
1fdc24daa9
Add unit test for verifying that all expected fields are present.
2021-01-06 14:19:26 +05:30
jonathansadowski
1e267980e8
Merge pull request #28723 from woocommerce/feature/issue-27208
...
Feature/issue 27208
2021-01-05 14:00:55 -06:00
Ron Rennick
b3b73e069a
merge upstream
2021-01-05 14:56:27 -04:00
Ron Rennick
35e490e631
restore accidental readme deletion
2021-01-05 14:52:29 -04:00
Nestor Soriano
f4a1f12824
Fix code sniffer errors
2021-01-05 17:23:23 +01:00
roykho
b25f01d2f3
Add unit tests
2021-01-05 08:14:39 -08:00
Nestor Soriano
f284ae8af3
Fix end of line handling for PHP 8 in WC_Tests_Log_Handler_Email
...
In PHP 7 the mail function generates PHP-style end of lines (\n),
and that's what these unit tests were assuming; in PHP 8 however
the proper network-style end of lines (\r\n) are generated.
This commit fixes the tests to be compatible with both styles.
2021-01-05 16:04:30 +01:00
Leif Singer
62d5e9a0bc
fix an overlooked merge conflict resolution issue
2021-01-05 15:06:51 +01:00
Ron Rennick
3076e1e50f
disable setting variation fields in variable product test
2021-01-05 13:24:51 +01:00
Ron Rennick
120fc00f82
use waitAndClick, waitForSelector where applicable
2021-01-05 13:24:51 +01:00
Ron Rennick
7a03688006
variation test works to last uncommented step
2021-01-05 13:24:51 +01:00
Ron Rennick
923bf28d44
use checkbox object for checking/unchecking
2021-01-05 13:19:49 +01:00
Ron Rennick
0d2a5ac5e9
Fixes needed for variable product E2E test
...
- Jest/Puppeteer sometimes will not find an element on page load when that element is outside the initial viewport
- There were duplicate .variation_tab classes which confused Jest/Puppeteer
- Add function for opening and verifying new product page
- Update test sequence for changes in flow in markup and Jest/Puppeteer
2021-01-05 13:19:49 +01:00
Vedanshu Jain
7d4cf1b8bf
Merge pull request #28677 from woocommerce/fix/request-request-arg-api
...
Add protection around `func_get_arg` method for backward compatibility.
2021-01-05 17:45:31 +05:30
vedanshujain
9e3cdd4ae7
Add tests for #28692
2020-12-30 19:29:22 +05:30
zhongruige
f472d3cc0f
Cast to number for the comparison
2020-12-29 10:38:36 -07:00
zhongruige
e3765dc650
Code review feedback
2020-12-29 09:10:22 -07:00
vedanshujain
818e24d5c5
Add protection around `func_get_arg` method for backward compatibility.
...
We are using func_get_arg method to receive argument in a backward compatible way since we cannot modify function signature to add more params even with default params. Earlier I was hoping to use DI to create another child class with modified signature and load it depending upon where we are executing from, however since we had to revert DI, we add this workaround to unblock #27735 .
2020-12-28 14:10:22 +05:30
zhongruige
aeb0f5861f
Make sure the tests are backwards compatible
2020-12-27 15:18:31 -07:00
zhongruige
98ee48d1df
Merge branch 'master' of https://github.com/woocommerce/woocommerce into add/e2e-simple-price-config-variable
2020-12-24 16:15:09 -07:00
Vedanshu Jain
9db6e2e49c
Merge pull request #28643 from woocommerce/feature/fix-build
...
Feature/fix build
2020-12-24 13:12:58 +05:30
zhongruige
0cdcb26f61
Addressing merge conflicts
2020-12-22 19:35:50 -07:00
Ron Rennick
d4cae9ee25
Update e2e-utils, e2e-core-tests to merchant & shopper ( #28133 )
...
* migrate utils from CustomerFlow/StoreOwnerFlow to customer, merchant and shopper
* merge customer into shopper
- add shopper.gotoMyAccount flow
* update internal uses to merchant, shopper
* add *Flow deprecation messages
* update e2e-utils changelog
* update order filter, refund tests to merchant
* add a wait to refund test for ajax to complete
* update StoreOwnerFlow to merchant in new test
* move ajax wait to end of previous test
2020-12-22 14:59:16 +01:00
Vedanshu Jain
800c6a61b7
Merge pull request #28620 from woocommerce/fix/28505
...
Stock management regression fixes
2020-12-21 22:36:53 +05:30
Ron Rennick
65d421b8f7
restore expected plugin list count to 4
2020-12-21 12:30:50 -04:00
zhongruige
55a8fc3d11
Merge branch 'master' of https://github.com/woocommerce/woocommerce into add/e2e-simple-price-config-variable
2020-12-21 08:54:33 -07:00
Claudio Sanches
8568a9b9ff
Fixed coding standards
2020-12-21 12:46:01 -03:00
Ron Rennick
6d8419e1d4
Merge branch 'master' into fix/28012
2020-12-21 10:59:38 -04:00
vedanshujain
5171108967
Better docs for test functions to specify expectations.
2020-12-21 15:51:07 +05:30
vedanshujain
b4b03f3b46
Merge branch 'master' into fix/28505
2020-12-21 15:42:04 +05:30
vedanshujain
39c200bf2d
Merge branch 'master' into fix/27673
2020-12-21 15:29:55 +05:30
Vedanshu Jain
d2c5fc0750
Merge pull request #28635 from woocommerce/packages/core-tests/setup-shipping
...
use xpath to find onboarding set up shipping task
2020-12-21 01:05:46 +05:30
Ron Rennick
4774297e15
use xpath to find onboarding set up shipping task
2020-12-19 23:00:32 -04:00
Ron Rennick
6509addabf
merge master
2020-12-18 13:40:49 -04:00