Commit graph

191 commits

Author SHA1 Message Date
Karolina Rakoczy
8bc2931679
Fix flaky tests for gift cards (#1938)
* fix gift cards

* add new command to search elements on table

* remove unused imports
2022-03-28 13:52:06 +04:00
Karolina Rakoczy
74848922dc
Run critical tests in ever PR (#1945)
* run critical tests after test env deployment

* add cache

* add all branches

* change workflow name

* add run on pull request for testing

* change type

* add run on deployment

* run on copleted

* test critical

* add quote

* change baseUrl

* fix base url

* fix base url

* upload reports

* run in parallel

* save build folder

* remove build from gitignore

* remove build

* update nide version

* last try with parallel

* save build

* save build

* Run critical

* change cypress API url

* run critical in parallel

* check which workflow has lower duration time

* save all reports with container in name

* add reports on failure

* remove reporters

* fix jobs

* merge

* add group name

* run critical

* Refactor critical tests (#1906)

* refactored tag added to purchaseWithProductsTypes, navigation, stocksInCheckout

* homePageAnalitics - refactor

* refactor home page

* refactor creating variants

* refactor adding product without sku to order

* add script to run critical locally

* change tests cases names

* fix names, remove comments, add script to run refactored tests

* remove workflow for parallel

* remove key

* run critical in deploy workflow

* remove workflow

* remove workflow
2022-03-23 11:36:30 +02:00
Karolina Rakoczy
f85786f203
Run critical tests after test env deployment (#1902)
* run critical tests after test env deployment

* add cache

* add all branches

* change workflow name

* add run on pull request for testing

* change type

* add run on deployment

* run on copleted

* test critical

* add quote

* change baseUrl

* fix base url

* fix base url

* upload reports

* run in parallel

* save build folder

* remove build from gitignore

* remove build

* update nide version

* last try with parallel

* save build

* save build

* Run critical

* change cypress API url

* run critical in parallel

* check which workflow has lower duration time

* save all reports with container in name

* add reports on failure

* remove reporters

* fix jobs

* merge

* add group name

* run critical

* Refactor critical tests (#1906)

* refactored tag added to purchaseWithProductsTypes, navigation, stocksInCheckout

* homePageAnalitics - refactor

* refactor home page

* refactor creating variants

* refactor adding product without sku to order

* add script to run critical locally

* change tests cases names

* fix names, remove comments, add script to run refactored tests

* remove workflow for parallel

* remove key
2022-03-21 13:17:37 +01:00
Karolina Rakoczy
5e0c8d25dd
fix links to shipping rates (#1916) 2022-03-15 12:02:32 +04:00
Karolina Rakoczy
6f69f8475c
Fix failing tests due to changes in the description field (#1903)
* fixed test for product

* fix passing description in variables

* fix tests for translations
2022-03-09 16:22:36 +01:00
Karolina Rakoczy
4d02eb60c0
Add reports to tests (#1898)
* add reporter, fix tests

* remove unused import

* get functions duration

* merge

* update snaps
2022-03-03 11:25:27 +01:00
Klaudia
8e8fcc775c
fixed issues with CLA, and added tests for update translation (#1868)
* fixed issues with CLA, and added tests for update translation

* npm i
2022-02-21 12:31:50 +01:00
Karolina Rakoczy
bc7eca4e49
Add tests for manage stock reservation (#1832)
* test for manage stock reservation

* merge

* add version
2022-02-11 16:26:01 +01:00
Karolina Rakoczy
7c47566995
add tests for shipping for 3.1 (#1859) 2022-02-11 16:08:45 +01:00
Karolina Rakoczy
74508ed93b
Add tests for updating vouchers (#1845) 2022-02-11 15:58:40 +01:00
Karolina Rakoczy
f86a3559b0
add tests for creating vouchers for 3.1 (#1844) 2022-02-11 15:39:10 +01:00
Karolina Rakoczy
f5a8db9f2e
Update data test ids for 3.1 (#1814)
* add update data test ids

* fix not changed test ids

* fix data-test-id for gift cards

* remove comment

* fix base url
2022-02-11 12:28:55 +01:00
Karolina Rakoczy
b7f6a932b9
merge (#1821) 2022-02-08 11:23:46 +01:00
Karolina Rakoczy
10fb086d6e
Add tests for product types for 3.1 (#1806)
* tests for product types for 3.1

* updated stories

* chage test cases names for product types

* add test for setting attribute as variant selection in product type

* add test for setting attribute as variant selection in product type

* split product types spec file

* uncomment purchase with product types test

* Update cypress/integration/configuration/productTypes/attributesInProduductTypes.js

Co-authored-by: Ewa Czerniak <ewa.czerniak@saleor.io>

Co-authored-by: Ewa Czerniak <ewa.czerniak@saleor.io>
2022-02-07 10:30:52 +01:00
Karolina Rakoczy
35e48a635f
Add tests for gift cards (#1779)
* added tests for gift cards

* update tests names for gift cards

* change naming, move functions from test file, fix testId

* fix move function

* Edit test case name

Co-authored-by: Ewa Czerniak <ewa.czerniak@saleor.io>

Co-authored-by: Ewa Czerniak <ewa.czerniak@saleor.io>
2022-02-01 11:58:02 +01:00
Karolina Rakoczy
9b1fce078a
Add test for creating product type with gift card kind (#1776)
* add test for creating product type with gift card type

* change product type tests names

* update tests names for producttypes
2022-01-31 10:25:59 +01:00
Karolina Rakoczy
5ede05affe
fix failing tests (#1797)
* fix failing tests

* fix tests for gift cards

* fix tests for gift cards

* upload video only when fail

* fix preorder time

* fixed translation page

* fix navigation, stripe and adyen

* fix graphQl npm

* update stories
2022-01-31 09:37:49 +01:00
Dominik Żegleń
f8254fd11b
Bump macaw to 0.3 (#1807)
* Update to new design theme (#1631)

* Update macaw to 0.3.0 (#1623)

* Update macaw to 0.3

* Use proper pagination component

* Fix type errors

* Remove leftover import

* Remove variant and color from confirm button

* Remove alias

* Update macaw

* Fix button type

* Random fixes (#1633)

* Improve layout components

* Use colored svgs

* Minor fixes

* Fix autocomplete loaders

* Fix padding

* Fix button variant

* Remove codegen file

* Fixes after bumping macaw to 0.3 part 2 (#1638)

* Fix various visual bugs

* Fix type errors

* Bump macaw

* Random fixes part 3 (#1647)

* wip

* Fix mismatched paddings

* Fix actions container padding

* Put story in the right directory

* Fix shipping zone picker

* Fix minor visual bugs

* Remove unused imports

* Move styles to separate file

* Random fixes part 4 (#1641)

* Fix various visual bugs

* Fix type errors

* Fix last table item padding

* Add outline on hover

* Fix spaces

* Fix spaces

* Remove dead code

* Fix elevation

* Remove dead code

* Fix shadows

* Add outline to expand button

* Fix spacing

* Fix spacings

* Fix selectable tables hover

* Use proper delete icon

* Fix ConfirmButtonTransitionState imports

* Update src/apps/components/CustomApps/CustomApps.tsx

Co-authored-by: Wojciech Mista <wojciech.mista@saleor.io>

Co-authored-by: Wojciech Mista <wojciech.mista@saleor.io>

* Rework error page (#1670)

* Remake error page

* Fix types

* Update error id styles

* Fix types

* Login page rework (#1703)

* Rework login page

* Remove outline

* Fix logo and footer placement

* Sort imports

* Random fixes part 5 (#1669)

* Fix text color in dark mode

* Update password reset pages (#1714)

* Update password reset pages

* Update src/auth/components/ResetPasswordPage/ResetPasswordPage.tsx

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

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

* Fix collection page

* Update dark mode logo

* Bring back "create app" button

* Fix spacings

* Fix selects

* Fix login e2e test

* Fix not found page displaying

* Update selector

* Add missing package

* Let dropdown overflow through card

* Fix scroll

* Fix scroll

* Fix overflow on grid element

* Fix e2e tests

* Fix data-test-id

* Update snapshots

* Update messages

* Update macaw

* Update snapshots

* Use stable macaw version

Co-authored-by: Wojciech Mista <wojciech.mista@saleor.io>
Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com>

* Update to new design theme (#1631)

* Update macaw to 0.3.0 (#1623)

* Update macaw to 0.3

* Use proper pagination component

* Fix type errors

* Remove leftover import

* Remove variant and color from confirm button

* Remove alias

* Update macaw

* Fix button type

* Random fixes (#1633)

* Improve layout components

* Use colored svgs

* Minor fixes

* Fix autocomplete loaders

* Fix padding

* Fix button variant

* Remove codegen file

* Fixes after bumping macaw to 0.3 part 2 (#1638)

* Fix various visual bugs

* Fix type errors

* Bump macaw

* Random fixes part 3 (#1647)

* wip

* Fix mismatched paddings

* Fix actions container padding

* Put story in the right directory

* Fix shipping zone picker

* Fix minor visual bugs

* Remove unused imports

* Move styles to separate file

* Random fixes part 4 (#1641)

* Fix various visual bugs

* Fix type errors

* Fix last table item padding

* Add outline on hover

* Fix spaces

* Fix spaces

* Remove dead code

* Fix elevation

* Remove dead code

* Fix shadows

* Add outline to expand button

* Fix spacing

* Fix spacings

* Fix selectable tables hover

* Use proper delete icon

* Fix ConfirmButtonTransitionState imports

* Update src/apps/components/CustomApps/CustomApps.tsx

Co-authored-by: Wojciech Mista <wojciech.mista@saleor.io>

Co-authored-by: Wojciech Mista <wojciech.mista@saleor.io>

* Rework error page (#1670)

* Remake error page

* Fix types

* Update error id styles

* Fix types

* Login page rework (#1703)

* Rework login page

* Remove outline

* Fix logo and footer placement

* Sort imports

* Random fixes part 5 (#1669)

* Fix text color in dark mode

* Update password reset pages (#1714)

* Update password reset pages

* Update src/auth/components/ResetPasswordPage/ResetPasswordPage.tsx

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

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

* Fix collection page

* Update dark mode logo

* Bring back "create app" button

* Fix spacings

* Fix selects

* Fix login e2e test

* Fix not found page displaying

* Update selector

* Add missing package

* Let dropdown overflow through card

* Fix scroll

* Fix scroll

* Fix overflow on grid element

* Fix e2e tests

* Fix data-test-id

* Update snapshots

* Update messages

* Update macaw

* Update snapshots

* Use stable macaw version

Co-authored-by: Wojciech Mista <wojciech.mista@saleor.io>
Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com>

* Fix visual bugs and artifacts

* Fix dropdown menus being clipped (#1762)

* wip

* Fix clipped select menus

* Remove unused import

* Fix spacing

* Fix tests

* Fix select content appearing under dialogs (#1777)

* Fix type errors

* Fix bulk delete button placement

* Fix filter arrow buttons

* Fix messages

* Remove backling from pages list

* Move status above events

* Update messages and snapshots

Co-authored-by: Wojciech Mista <wojciech.mista@saleor.io>
Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com>
2022-01-28 13:34:20 +01:00
Karolina Rakoczy
204dfac29f
Add tests for content attributes fo 3.1 (#1773) 2022-01-24 13:09:48 +01:00
Karolina Rakoczy
41e80d71c0
Add tests for attributes for 3.1 (#1725)
* merge changes

* fix bracket
2022-01-17 11:03:52 +01:00
Karolina Rakoczy
8d20394518
merge (#1726) 2022-01-14 11:08:25 +01:00
Karolina Rakoczy
55492aff9a
Saleor 5021 add tests for customers (#1688) (#1733)
* customers

* all tests for customers

* change data-test attribute name

* add empty lines
2022-01-13 11:21:21 +01:00
Karolina Rakoczy
a01a2b5a30
Update tests for creating variants (#1718)
* merge

* add data-test-id to sku input

* remove data-test-id from sku input

* update stories

* remove duplicated attribute
2022-01-04 16:13:15 +01:00
Karolina Rakoczy
95c85a72ed
tests for pages (#1695) 2021-12-22 14:55:08 +01:00
Karolina Rakoczy
926d481268
Add tests for delete/update warehouse (#1676) (#1689)
* remove warehouse from shipping

* tests for warehouses
2021-12-22 14:54:09 +01:00
Karolina Rakoczy
ef983cc347
Add tests for updating & deleting collections and categories (#1662) (#1693)
* tests for updating & deleting collections and categories

* add empty spaces

* fix create category
2021-12-22 12:27:28 +01:00
Karolina Rakoczy
4b05f67b2c
fix login by API (#1700) 2021-12-17 14:27:13 +01:00
Karolina Rakoczy
866bb91177
tests for gift cards (#1677) 2021-12-17 12:08:13 +01:00
Karolina Rakoczy
5a14884f9d
Fix failing cypress tests (#1671)
* fix tests

* fix prorders & images

* change base url

* remove comment
2021-12-17 12:07:51 +01:00
Karolina Rakoczy
a8c6379d4e
Add tests for variant selection (#1627)
* variant selection

* variant selection

* add empty space
2021-12-16 16:16:12 +01:00
Karolina Rakoczy
6f8feebf7c
Fix tests for purchase digital product for 3.1 (#1684)
* purchase digital product for 3.1

* purchase digital product for 3.1
2021-12-15 13:17:35 +01:00
Karolina Rakoczy
3fd50ee3a7
Add tests for swatch attributes (#1606)
* always run critical

* tests for swatch attributes

* Update cypress/integration/configuration/attributes/attributes.js

Co-authored-by: Ewa Czerniak <ewa.czerniak@saleor.io>

Co-authored-by: Ewa Czerniak <ewa.czerniak@saleor.io>
2021-12-14 12:14:40 +01:00
Karolina Rakoczy
e2c05e7dd6
Add new tests for login (#1580)
* always run critical

* tests for login

* tests for login
2021-12-05 16:03:29 +01:00
Karolina Rakoczy
b7da933bf2
Add tests for preorders- threshold and stocks (#1567)
* tests for preorder, stoks an threshold

* fix tests for ordering products in channel threshold
2021-12-05 16:03:04 +01:00
Karolina Rakoczy
925e723c35
Add tests for creating preorders (#1563)
* add test for creating preorder variant

* all tests for creating & editing variants in preorder
2021-11-26 12:42:59 +02:00
Karolina Rakoczy
56b48b87ea
Test for creating order with product without sku (#1559) 2021-11-22 16:34:21 +04:00
Karolina Rakoczy
2eb7193ce9
tests for updating products sku (#1555) 2021-11-22 15:59:50 +04:00
Karolina Rakoczy
a311583647
Add tests for creating products without sku (#1550)
* create products without sku

* update stories

* update stories
2021-11-22 15:57:20 +04:00
Karolina Rakoczy
a39f729a1f
update tests for vouchers (#1546) 2021-11-03 12:29:59 +01:00
Karolina Rakoczy
80809a078a
Fix cypress tests (#1541)
* fix tests

* fix base url

* fix varinats tests
2021-11-03 12:15:39 +01:00
Karolina Rakoczy
b0369bf5ca
tests for sales (#1494)
* tests for sales

* fix create sale with assigned products tests and add test for deleting voucher

* remove unused imports

* Update cypress/support/api/utils/discounts/salesUtils.js

Co-authored-by: Dominik Żegleń <flesz3@o2.pl>

* fix async, remove unused imports

Co-authored-by: Dominik Żegleń <flesz3@o2.pl>
2021-10-28 16:43:26 +02:00
Karolina Rakoczy
d618b8e775
Add tests for stripe (#1529)
* test for stripe

* first test for stripe

* tests for stripe

* remove comment

* fix import

* fix import

* remove todo
2021-10-28 14:14:07 +02:00
Karolina Rakoczy
cc7626be42
Duplicate current test for sales to work on variants instead on products (#1491)
* Duplicate current test for sales to work on variants instead on products

* remove unecessery imports

* Update cypress/integration/discounts/salesForVariants.js

Co-authored-by: Ewa Czerniak <ewa.czerniak@saleor.io>

Co-authored-by: Ewa Czerniak <ewa.czerniak@saleor.io>
2021-10-21 12:47:18 +02:00
Karolina Rakoczy
29a90f3e3d
test for refresh (#1497) 2021-10-21 12:46:17 +02:00
Karolina Rakoczy
39c1e8e208
tests for click & collect (#1488) 2021-10-21 12:45:38 +02:00
Karolina Rakoczy
5bee739872
Saleor 4581 tests for products images (#1450)
* tests for images on product list

* image on product details page should be displayed

* test for upload image

* fix collection utils import

* fix creating test data

* update jest
2021-10-14 13:47:41 +03:00
Karolina Rakoczy
f7b452cb12
tests for warehouses in checkout (#1379)
* tests for warehouses in checkout

* fix puchase product with type
2021-10-05 13:46:58 +02:00
Karolina Rakoczy
2407ae6f76
gift cards in checkout (#1376)
* gift cards in checkout

* complete checkout after trying to add gift card

* fix gift cards tests

* fix gift cards

* update snapshots

* fix tests

* fix gift cards in checkout

* delete created channels
2021-09-29 15:24:47 +02:00
Karolina Rakoczy
2c64a966cc
Saleor 4437 refactor tests (#1389)
* reference type cypress working

* refactor

* remove screenshots

* add reference

* add slash marker

* run tests based on shop version

* fix run tests based on shop version

* fix run tests based on shop version

* change base url to localhost

* fix plugins

* fix plugins

* fix plugins

* fix plugins

* fix plugins

* fix plugins

* fix yml

* fix yml

* chage file names

* fix files names

* fix broken imports add checking for errors in grpah responses

* fix broken imports add checking for errors in grpah responses

* update jest

* fix snapshot
2021-09-27 12:04:21 +02:00
Wojciech Mista
b98f069aab
Add page type and attributes permissions handling (#1425)
* WIP add new configuration menu

* Add missing permissions

* Changed filtering to one based on arrays of permissions

* Add hasAnyPermissions and hasAllPermissions functions

* Simplify getConfigMenuItemsPermissions function

* Simplify routing logic
2021-09-24 14:01:54 +02:00