Boro Sitnikovski
ad3b9fc861
Fix version mismatch error
2020-05-15 11:21:59 +02:00
Boro Sitnikovski
b01f3aae93
Add some additional information and be specific about babel file
2020-05-15 11:21:34 +02:00
Peter Fabian
2f141eca77
PHPCS
2020-05-15 09:40:23 +02:00
Christopher Allford
7bf9c31f64
Adjusted the column name normalization to avoid squashing meta key case sensitivity
...
Since we were converting the field to lowercase we ended up inserting meta in all lowercase, regardless of what it was in the CSV file. We should only be using the normalized field name when looking at the default columns, and should instead rely on a case-insensitive regex for the special columns.
One thing to note is that we're still defaulting the $headers array to the normalized field, as we don't want to change what is being passed to the filter for unmapped columns.
2020-05-14 21:20:55 -07:00
Christopher Allford
63ba6f7ee0
Moved the PSR-4 namespaced test directory to the correct folder
...
I know this probably doesn't belong in this PR, but it has been thoroughly discussed and I don't think anyone will mind :)
2020-05-14 21:20:47 -07:00
Peter Fabian
777c140611
Skip tests when WC Admin is not active.
...
Since those Notes were created because of WC Admin and the display is handled by WC Admin, it does not make sense to test them without WC Admin.
In addition, the data store that handles these Notices is not loaded without WC Admin.
2020-05-14 14:35:09 +02:00
Peter Fabian
2c1625d3f9
Added a couple of tests for WC_Notes_Run_Db_Update, a poorly testable class.
2020-05-14 13:31:43 +02:00
Ron Rennick
3053942cf1
chore(release): publish
...
- @woocommerce/e2e-environment@0.1.5
2020-05-13 15:18:00 -03:00
Ron Rennick
a433304757
additional changes
...
- Update @wordpress/e2e-test-utils to 4.6.0
- ignore all node_modules folders in the install
- remove missed package script
- bump component version
2020-05-13 15:14:18 -03:00
Claudio Sanches
1d99c343e7
Added unit tests
2020-05-12 15:36:25 -03:00
Christopher Allford
ef8e7114b7
Merge branch 'privacy-exporter-group-description' of git://github.com/garretthyder/woocommerce into garretthyder-privacy-exporter-group-description
2020-05-12 09:40:17 -07:00
Ron Rennick
df6e9e7894
bump e2e-environment to 0.1.4
2020-05-12 13:35:42 -03:00
Job
8fb72c8a1d
Decapitalise "Better" in "Build a Better WooCommerce"
...
All titles and questions in the new onboarding wizards only capitalise names and the first letter of the sentence. This seemed a tiny bit off. (Literally tiny.)
Changed "Build a Better WooCommerce" to "Build a better WooCommerce"
2020-05-12 07:49:24 -07:00
Ron Rennick
02b649d17c
use version of docker supported by trusty and newer
2020-05-11 22:58:45 -03:00
Ron Rennick
ed135109e0
add e2e component build
...
- add build script
- update component for path changes
- bump component version
- move ready post creation to component
- update component readme
2020-05-11 15:54:12 -03:00
Vedanshu Jain
31b648d479
Merge pull request #26358 from woocommerce/fix/26348
...
Clear only plugin cache if WC header are not present to load with WC headers.
2020-05-11 18:14:39 +05:30
Ron Rennick
e2af7e5d10
Merge pull request #26427 from woocommerce/docs/e2e-tests
...
update tests and e2e readme instructions, file locations
2020-05-11 09:16:38 -03:00
Ron Rennick
dea4144be2
docker compose command line arg parsing for local and module
2020-05-08 16:26:30 -03:00
Vedanshu Jain
6d8ca7f4ef
Merge pull request #26056 from woocommerce/fix/fix_cart_unit_test
...
Fixes broken unit test
2020-05-08 23:52:01 +05:30
Claudio Sanches
73b71023ca
Fixed cart get total unit test
2020-05-08 23:17:59 +05:30
yasiendwieb
ad3a9e8bf3
fix issue in tax calculation at cart test case
2020-05-08 23:17:59 +05:30
Ron Rennick
72ff998033
remove npm e2e-CI script command
2020-05-08 14:29:02 -03:00
Ron Rennick
209b2edea9
chore(release): publish
...
- @woocommerce/e2e-environment@0.1.2
2020-05-08 14:09:39 -03:00
Ron Rennick
e1c24c9f3e
chore(release): publish
...
- @woocommerce/e2e-environment@0.1.1
2020-05-08 14:00:46 -03:00
Ron Rennick
4f908c452d
update tests and e2e readme instructions, file locations
2020-05-08 11:24:43 -03:00
Ron Rennick
0f2fb4f8d5
fix merge conflicts
2020-05-06 14:05:00 -03:00
Ron Rennick
0e2e91371a
update for review items
2020-05-06 13:29:13 -03:00
Joshua T Flowers
43ab840e1a
Add a put method to the WC_Helper_API ( #26262 )
...
* Merge wc api authorization headers with given headers
* Add put method to WC_Helper_API
* Add unit test coverage around WC_Helper_API request methods
* Add tests for WC_Helper_API url method
2020-05-06 19:25:23 +03:00
Jonathan Sadowski
a0a8cf7ab3
Add test to ensure that a notice is displayed when an any attribute is omitted
2020-05-05 14:16:01 -05:00
Jonathan Sadowski
53c905f493
Reset request vars in any attribute test
2020-05-05 13:32:15 -05:00
Jonathan Sadowski
c0a72c9185
Reset notices at the start of each test
2020-05-05 13:32:15 -05:00
Jonathan Sadowski
3f47608228
Test adding a variation with 'any' attributes
2020-05-05 13:32:15 -05:00
Jonathan Sadowski
790c8ae8ae
Update the test to make sure there are no error notices
2020-05-05 13:32:15 -05:00
Jonathan Sadowski
3f70f70f3a
Switch to assertCount for count assertions in test
2020-05-05 13:32:15 -05:00
Jonathan Sadowski
3d0bfd8ee2
Add test to check for notice when invalid attribute is provided for a variant
2020-05-05 13:32:14 -05:00
Jonathan Sadowski
31bdce3725
Fix typo in test_add_variation_with_url test (use British spelling of colour)
2020-05-05 13:32:14 -05:00
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