Commit graph

26 commits

Author SHA1 Message Date
Karolina Rakoczy
f68410b7cb
Saleor 3711 tests for categories and collections (#1204)
* tests for collections

* all tests for categories
2021-07-15 14:17:56 +03:00
Karolina Rakoczy
e76c78a23b
tests for shipping (#1173)
* tests for shipping

* fix typo

Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com>

* add data-test-id

Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com>
2021-07-12 11:50:50 +03:00
Karolina Rakoczy
f5c5a8770c
tests for product types (#1199) 2021-07-05 12:21:35 +02:00
Karolina Rakoczy
2c5b0feeb1
Fix tests after changes (#1149)
* fix

* fix
2021-06-10 10:13:31 +02:00
Karolina Rakoczy
839c4f5afe
Saleor 2961 tests for stocks in checkout (#1117)
* tests for stocks

* stocks in checkout

* stocks in checkout

* fix shipping

* add billing address

* add empty line
2021-06-07 13:35:26 +02:00
Karolina Rakoczy
074c0f7a6c
Saleor 2960 checkout products without shipment (#1075)
* add tests for puchase by type

* add expect for isShippingRequired
2021-04-28 15:10:47 +02:00
Karolina Rakoczy
4013105844
Saleor 2697 tests for updating products (#1060)
* updating products

* updating products

* test for updating
2021-04-21 10:02:48 +02:00
Karolina
d5233b3131
Saleor 2893 fix failing cypress tests (#1064)
* fix tests

* fix tests

* fix tests
2021-04-16 13:36:24 +02:00
mmarkusik
8fe66a3bde
Add channel shipping zones (#1015)
* Add naked input option to SingleAutocompleteSelectField and update it's stories

* Add new icons - chevron up, down & trash

* Add deletable item component and stories

* Add card add items footer component to be used in warehouses and product stocks assign

* Update schema and types

* Add shipping zones card components

* Update channel details page form to also include shipping zones

* Update makeTopLevelSearch hook files directory and add getSearchFetchMoreProps function to avoid extracting it manually every time

* Update channels types & fragments

* Move getDefaultNotifierSuccessErrorData function to useNotifier utils, update dir etc., also make order discount provider use it from the new dir

* Add shippinh zone to channel update and create and add shipping zone search

* Update messages

* Fix types

* Fix lint, types etc

* Small refactor from review and quick fix styles of shipping zones card

* Refactor a bit and update snapshots

* Refactor a bit and update snapshots

* Addd / refactor channels availability components

* Add useChannelsWithProductVariants hook with utils and types

* Add / refactor more channels availability components

* Move avatar from table cell avatar to separate component for it to be usable outside of tables

* Add channels with variants logic to product create and update pages & views

* Refactor components to use updated channels availability components

* Remove unnecessary comments

* Update storybook

* Update types

* Update messages

* Fix prices for variants / simple product not uodating properly

* Post merge cleanup, update schema, types, etc.

* Change shipping zone details warehouses card into settings card and add ability to assign channels to shipping zone

* Update types

* Update snapshots

* Fix selecting / deselecting all channels in channels with variants modal

* Fixes after review, some types changes etc.

* Update snapshots

* Small types fixes

* Make price rates views use parent shipping method channels instead of all

* Make price rates views use parent shipping method channels instead of all

* Update types

* Fix bugs

* Fixes after review

* Fix channels availability data submission

* Fix lint

* Fix variant pricing card showing not related channels

* Fixes after review

* Fix types

* Hide unaviable variants in add products to draft order dialog

* Fix channels with variants availability modal showing confirm button as enabled when it shouldn't

* Fix types

* Update semi checked icon to match old designs

* Update types

* Update channels icon in channels with variants availability

* Fix product cypress test after product channels mutation changed

* Fix trash and chevron down colors in dark mode

* Fix shipping zones card footer not updating query after click away

* Fix types in schema, add condition not to display shipping zones select in channel details if all zones have already been selected

* Fix products adding in order draft dialog

* Fix simple productupdate

* Update snapshots after merge with master

* Update messages

* Fix product api request for cypress

* Add missing test id

* Fix selecting if product is simple -> form being submitted with empty data sometimes

* Update snapshots, messages and add fix for invalid date at product update

* Remove unnecessary imports

* Fix failing test in saleor 2552 (#1061)

* fix

* fix

* fix

Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com>
Co-authored-by: Karolina <rakoczy.karolina@gmail.com>
2021-04-14 15:44:25 +02:00
Karolina
2173e241b5
Saleor 2692 tests for filtering products (#1055)
* test for filtering products

* tests for filters

* change filter input selector

* change filter input selector

* change filter input selector

* add data-test-id
2021-04-12 17:22:12 +02:00
Karolina
114476d615
Saleor 2696 tests for product create (#1026)
* test for product create

* tests for creating product

* create new expect product info utils file
2021-04-01 14:33:36 +02:00
Karolina
746ce8b95f
Saleor 1745 tests for discounts sales (#998)
* test plan for sales - discounts

* create sale

* passing tests for sales

* tests for collections

* remove eslint diable in sales tests

* remove eslint-disable

* move shared selectors

* move shared selectors

* fix indentation in requests

* add formatDate function

* remove moment

* remove moment
2021-03-12 15:57:02 +01:00
Karolina
fc597a7a7f
Saleor 2590 remove classes from cypress tests (#1003)
* remove classes in shipping & products utils

* remove classes

* add const

* remove getters in ProductsUtils

* remove getters in Utils

* remove getters in Utils
2021-03-12 13:14:18 +01:00
Karolina Rakoczy
4a64dd8d57 tests for variants 2021-03-01 12:54:08 +01:00
Karolina Rakoczy
7e793140e7 test for variants 2021-02-26 16:39:42 +01:00
Karolina Rakoczy
83bf59889e merge with products 2021-02-24 20:35:37 +01:00
Karolina Rakoczy
ac7f1b19b6 tests for products - fix storefront req 2021-02-23 15:30:52 +01:00
Karolina Rakoczy
e8c20ae511 tests for products 2021-02-23 13:09:58 +01:00
Karolina Rakoczy
03c6149f6f tests for variants 2021-02-19 09:45:34 +01:00
Karolina Rakoczy
1b4da95e81 tests for products 2021-02-18 20:32:35 +01:00
Karolina Rakoczy
a33b13aaa2 tests for available for purchase 2021-02-18 19:28:01 +01:00
Karolina Rakoczy
5fa5eda4a7 merge with master 2021-02-18 16:28:29 +01:00
Karolina Rakoczy
ebfb22d9f8 add promises 2021-02-16 15:19:46 +01:00
Karolina Rakoczy
2a9e420420 all tests for products 2021-02-08 10:23:12 +01:00
Karolina Rakoczy
cb528a7744 tests for publish products 2021-02-04 12:15:27 +01:00
Karolina Rakoczy
fe9f55ee81 created orders and products, missing data-testid 2021-02-02 12:34:10 +01:00