Commit graph

328 commits

Author SHA1 Message Date
wojteknowacki
cf4adbc1af
test bulk delete products (#3633)
* wip

* bulk delete 2 products

* removed unused helper

* added TC number
2023-05-11 15:03:37 +02:00
Anna Szczęch
70c7f3a2f8
Add e2e for capture transactions in orders (#3567)
* Update schema, remove transaction specific files

* Merge `.transaction` queries and mutations into regular files

* Merge OrderDetails fragments

* Remove usage of `.transaction` graphl types

* Update fixtures

* Remove usage of useFlag, remove duplicated queries & mutations

* Fix displayed event type for INFO

* Remove type alias from order/types.ts, remove type casting

* Fix failing tests

* Add preview label and better description in Channel settings

* Update button in GrantRefund page

* Fix missing data-test-id

* add e2e for capture transactions in orders

* creates tests for transactions order view switched on

---------

Co-authored-by: Jonatan Witoszek <jonatan.witoszek@saleor.io>
Co-authored-by: wojteknowacki <wojciech.nowacki@saleor.io>
2023-05-11 08:46:33 +02:00
wojteknowacki
86932d1cd9
Test variant selection fix (#3617)
* fixing attribute variants selection tests
2023-05-10 14:03:33 +02:00
Karolina Rakoczy
2b87e8b141
Move from mailhog to mailpit main (#3616)
* move from mailhog to mailpit

* update packaje-lock
2023-05-10 12:13:52 +02:00
Patryk Andrzejewski
97b682c805
Sku triggers variant name change (#3470)
* Sku triggers variant name change

* fixes product variants failing tests SALEOR_2901 and SALEOR_2902

* fix should be able to create several variants visible for the customers. TC: SALEOR_2902

---------

Co-authored-by: wojteknowacki <wojciech.nowacki@saleor.io>
2023-05-05 11:34:35 +02:00
Krzysztof Żuraw
180e3c56e6
Migrate product create page to new MacawUI (#3372)
Co-authored-by: Michał Droń <droniu@droniu.dev>
Co-authored-by: timur <timuric@gmail.com>
Co-authored-by: wojteknowacki <wojciech.nowacki@saleor.io>
2023-05-04 10:57:18 +02:00
Anna Szczęch
3487dce57f
Fix test for orders after changing view to grid (#3545) 2023-04-21 13:34:56 +02:00
wojteknowacki
375aea0fff
Add presets tests for products list view (#3506) 2023-04-18 11:54:23 +02:00
wojteknowacki
fc1c367eaf
dashboard demo tests (#3431)
* dashboard demo tests
2023-04-05 09:09:53 +02:00
Krzysztof Żuraw
2a9b512178
Migrate to refresh token (#3426) 2023-03-31 10:17:48 +02:00
Patryk Andrzejewski
5beabd431d
Helper for grid-related e2e tests (#3424)
* Helper for grid-related e2e tests

* Helper

* Conflicts
2023-03-30 09:59:35 +02:00
wojteknowacki
262caea8e6
working visual tests - percy 1st attempt (#3400)
* working visual tests - percy 1st attempt

---------

Co-authored-by: Karolina Rakoczy <rakoczy.karolina@gmail.com>
2023-03-28 12:59:33 +02:00
wojteknowacki
dd2a643566
fixing failing tests (#3411)
* fixing failing tests
2023-03-24 09:03:48 +01:00
wojteknowacki
4fa11af37d
test 0209 fix (#3404)
* test 0209 fix
2023-03-22 11:58:51 +01:00
Michał Droń
f8d86510b2
🏷️ Rework product list view (#3296) 2023-03-20 13:06:33 +01:00
wojteknowacki
6dfdf46b48
fixed test SALEOR_0810 (#3312) 2023-03-09 11:05:25 +01:00
wojteknowacki
bf532939e2
Test navigation refactor (#3294)
* naviagtion aka permissions refactor
2023-03-09 09:18:07 +01:00
M.Graczyk
9097d4076e
Add "testmo" config (#3209)
* Add testmo config

* update base url

* Remove dupilcation
2023-02-27 09:31:08 +00:00
wojteknowacki
3055af4841
fixing failing critical variants tests (#3212) 2023-02-23 16:41:35 +01:00
wojteknowacki
0093f8dad4
fix 2104 e2e test (#3207) 2023-02-22 14:07:48 +01:00
Timur Carpeev
6434f277e8
Metadata by default no expanded (#3172) 2023-02-21 16:14:00 +01:00
Patryk Andrzejewski
3789f5bb52
New macaw ui (#3069)
Co-authored-by: Krzysztof Żuraw <9116238+krzysztofzuraw@users.noreply.github.com>
Co-authored-by: Michał Droń <dron.official@yahoo.com>
Co-authored-by: Paweł Chyła <chyla1988@gmail.com>
2023-02-20 16:21:28 +01:00
Paweł Chyła
b040a0deb8
Product variants bulk update (#3032) 2023-02-15 14:31:45 +01:00
Anna Szczęch
e4db92be74
Fix for create and updateVouchers tests (#3056)
* remove find(input) and fix checkIfDataAreNotNull place in updatevouchers

* restore find input
2023-02-02 09:59:55 +01:00
Karol
b702aba701
uncomment and add test number (#3073) 2023-01-31 13:01:24 +00:00
Anna Szczęch
1baa9d35a7
Fix test should not be able to create staff member with not unique email. TC: SALEOR_3508 (#3055)
* add data-test-id for error text and update test SALEOR_3508

* undo xit

* move selector form test body to elements
2023-01-30 11:54:58 +01:00
Karolina Rakoczy
2b3c566e09
Update cypress version (#3053)
* update cypress

* Fix clearAndtypeCommand

* Fix selects

* Fix attribute query, and logging errored responses

* Fix mailhog commands

* Fix mailhog

* Fix for warehouses

* fix tests for plugins and sku

* Fix creating variants

* Fix plugins

* move cypress to optionalDependencies

* move cypress to optionalDependencies
2023-01-27 16:27:49 +01:00
Karolina Rakoczy
d413c8e852
update tax configuration before creating vouchers (#2939) 2023-01-25 13:32:30 +01:00
Anna Szczęch
644b58a914
Fix failed night schedule tests (#3015)
* fix e2e tests

* update test tag

* update tax config in tests failing on v310

* updatet taxes for product variant tests

* move updateRaxConfiguration to beforeEach

* fix imports

* change retries in config

* update data-test-id and remove failing wait for request
2023-01-25 11:32:28 +01:00
Anna Szczęch
b723e05b2f
Change tags in tests from stagedOnly to allEnv (#2985) 2023-01-16 15:05:07 +01:00
poulch
d5ed6fb202
Feature flags (#2961)
* [Feature Flags] Abstraction over flags provider (#2928)

* Remove useFlag hook

* [Feature Flags] GraphQL build multiple schemas (#2937)

* Build script

* Refactor build types script

* Remove old codegen.yml

* Clean feature flags in script

* Refactor schema path

* Restore useAuthProvider

* Update configuration file

* encapsulate details for feature flags provider

* Add proper env to flagsmith provider

* Remove flagsmith mocks

* Vite config define global variables

* Render flagmisth provider only when is used

* Keep name service agnostic

* Test with mocked flagsmith

* Use global FLAGS varaible for env flags

* Fix type issue with FLAGS

* Fix build issue

* Remove duplicate translations

* Fix typo

* Prepare for QA tests

* Remove test feature flag
2023-01-16 14:55:38 +01:00
Karolina Rakoczy
39ce183583
Update tests check if all data created in before are correct (#2917)
* add commend to check if data are correct

* Add command for checking created data
2023-01-16 10:43:13 +01:00
Anna Szczęch
d90abd4f8b
Fix test related to saving variant (#2962)
* Update test after changes in variant name behaviour

* remove comment

* Add data-test-id and update tests
2023-01-13 09:21:18 +01:00
Anna Szczęch
ee19e42e7e
Restore saving variant in fillUpVariantDetails (#2954) 2023-01-09 14:40:19 +01:00
Anna Szczęch
2b4a819fae
Fix for cleaning customers function in e2e (#2952) 2023-01-09 12:28:12 +01:00
Anna Szczęch
d695bb9aa6
Fix should make a refund 2107 (#2950)
* get/update taxes for tests

* update creating shipping and product of tax class
2023-01-09 10:55:12 +01:00
Karol
91478a8b6d
done (#2948) 2023-01-09 10:26:09 +01:00
Anna Szczęch
7545bc152b
Fix tests for SKU (#2924)
* add tests update and tc ids

* move test to proper file and refactor

* update before for createProductWithoutSku

* update before for updatingProductsWithoutSku

* add function for create simple product
2023-01-05 08:06:46 +01:00
Karol
00757a50d1
2865 standardize test ids for elements (#2931)
* done

* done
2023-01-03 09:18:56 +01:00
Anna Szczęch
46a9c527a7
E2E fixes after countryArea changes 2023-01-02 08:45:07 +01:00
Karol
0d7af543ac
2916 fix cypress tags (#2927)
* part one

* part two

* part three

* part four, changes menage to manage

* done
2022-12-30 08:21:28 +01:00
Karol
e69eb9cc5f
Cypress 2608 staff member tests (#2902)
* fix existing

* add SALEOR_3508

* add data-test-id needed for 3509

* add TODOs

* 3509 done, work on 3510

* done 3510

* found bug blocking test 3507, gh 2847

* pr review adjustments

* pr adjustments

* additional pr adjustments
2022-12-23 11:30:21 +01:00
poulch
1d4c4d878e
Datagrid - show icon button when single menu item with icon (#2862)
* RowMenu component

* Show first menu item as icon

* RowAction tests

* Change Edit button

* Remove outline from colum picker

* Change ghost color

* Update enterVariantEditPage test

* Update test id in test for edit button

* Update editVariant selector in test
2022-12-16 20:59:39 +01:00
Michał Droń
e90a2fd757
Remove submitting from exit dirty form modal (#2820)
* Remove submit from exit dirty form util

* Extract messages

* Change data-test-id attributes

* Add a unit test

* Change given when then to AAA

* Mock packages

* Change button click to user events
2022-12-16 15:54:41 +01:00
Dawid
bba95a8fb4
Extract "webhooks & events" to separate page (#2818)
* Extract "webhooks & events" to separate page

* Create separate /custom-app/ path for custom apps with webhooks

* Change all /webhooks/ paths to /custom-apps/

* Update messages

* Update generated graphql types

* Create findById util

* Refactor consts and resolvers for custom app urls

* Fix app graphql fragment

* Update Miscellaneous icon for Webhooks and Events

* Add tests for custom apps utils

* Fix dark-mode Miscellaneous icon for Webhooks and Events

* adjustments for autotests

Co-authored-by: karolm-saleor <karol.macheta@saleor.io>
2022-12-15 14:51:05 +01:00
Karol
9c605f8d1b
[cypress] add tests for gift cards bulk create and export (#2801)
* first draft

* fixed data-test-id

* done

* restore port for cypress

* change email

* pr improvments

* add csv check

* adjustments

* added check for xlsx

* change name

* change name

* remove cy log

* remove cy log

* add yaml cypress mailhog var
2022-12-13 08:04:54 +01:00
Anna Szczęch
443a94834e
expect email to lowercase in test assertions (#2796) 2022-12-07 10:52:39 +01:00
Karol
d2496679c0
[cypress] Add tests for delete several gift cards (#2646)
* done

* pr fixes part1

* wip

* pr adjustments

* remove cy log
2022-12-02 10:37:09 +01:00
Karolina Rakoczy
ea2cd5fe96
clear session data when needed (#2711) 2022-11-28 12:36:53 +01:00
Anna Szczęch
231a32d115
Update permissions for staff members in e2e tests(#2728) 2022-11-28 11:40:27 +01:00