Commit graph

351 commits

Author SHA1 Message Date
Paweł Chyła
4ad8c15366
Collections listing datagrid (#3835)
Co-authored-by: Krzysztof Żuraw <9116238+krzysztofzuraw@users.noreply.github.com>
Co-authored-by: wojteknowacki <124166231+wojteknowacki@users.noreply.github.com>
2023-07-11 08:59:01 +02:00
wojteknowacki
ad341e9954
Tests - fixes pages scenarios (#3857)
* test fixes for pages scenarios

* fixed pages tests - should create published page should keep failing since waits for BE fix
2023-07-05 14:23:56 +02:00
Paweł Chyła
b4f11eff66
Category listing datagrid (#3760)
Co-authored-by: wojteknowacki <wojciech.nowacki@saleor.io>
2023-07-04 09:23:27 +02:00
wojteknowacki
5eb6888c42
test - fix vouchers tests (#3832) 2023-06-30 14:02:37 +02:00
wojteknowacki
c12a42932d
test - fixes createSales ans updateSales (#3816)
* test - fixes createSales ans updateSales

* changed name shouldVariantBeOnSale into getVariantWithSaleStatus

* cr fixes
2023-06-29 15:40:51 +02:00
wojteknowacki
e69a62d9bb
fixed flaky draft order and products without sku tests (#3795) 2023-06-23 14:51:59 +02:00
wojteknowacki
6a2ee1f1d0
test for opening products from order grid (#3780) 2023-06-23 12:01:57 +02:00
Paweł Chyła
2db64cd135
Allow to copy and go to product details on order details datagrid (#3744) 2023-06-20 10:29:28 +02:00
wojteknowacki
17bca62f31
test fix - filtering products (#3739) 2023-06-13 09:06:57 +02:00
wojteknowacki
f4da8daa90
test fix should change admin email plugin. TC: SALEOR_3602 - test was filing when running on 2 browsers - triggered only chrome now (#3708) 2023-06-01 10:07:32 +02:00
wojteknowacki
2505012746
tests - removed test for img thumbnail, commented payment test, bump mail fetching retries (#3701)
* removed test for img thumbnail since during triage it was decided it is possible img will not be available, also commented test for payment status since there is bug created and we are waiting to fix it, also increased retries for mail fetching

* CR fixes - xit instead comment, get mail retry var declaration
2023-05-30 14:06:54 +02:00
wojteknowacki
38ccecea1f
test fix - removed deleting resources from db since this was creating… (#3691)
* test fix - removed deleting resources from db since this was creating concurrent conflicts between pr on the same env

* test fix - missing faker import, api request missing uniq slug, draft order test,

* fix failing tests

* test fix filtering products

* test - final fix of 2 last failing tests - staff memebers and click and collect
2023-05-29 09:15:07 +02:00
wojteknowacki
16f8e0b177
test fix for order suite and add missing critical tags (#3690) 2023-05-24 16:27:01 +02:00
Patryk Andrzejewski
730c96db88
Attach metadata to the fulfillments within the orders (#3667)
* Metadata for fulfillment

* Metadata for fulfillment

* Trigger deploy

* Fix removing priv metadata

* Remove blinks

* tests for adding, deleteing and updating public and prvate metadata for fullfilled orders (#3684)

---------

Co-authored-by: wojteknowacki <124166231+wojteknowacki@users.noreply.github.com>
Co-authored-by: wojteknowacki <wojciech.nowacki@saleor.io>
2023-05-23 13:51:56 +02:00
wojteknowacki
b396c8e9a5
fixes staff members tests (#3678)
* fixes staff members tests

* removing 'only' from suite
2023-05-23 09:51:36 +02:00
Karolina Rakoczy
14ee7dc054
Fix tests for pages (#3660) 2023-05-18 11:40:25 +02:00
Anna Szczęch
21e0be5109
Add e2e for should be able to switch to products tile view SALEOR_2610 (#3619)
* add e2e for switching to tile view

* remove unused reference

* add change to tile view helper

* use cypress command checkIfElementIsVisible

Co-authored-by: wojteknowacki <124166231+wojteknowacki@users.noreply.github.com>

* change to kebab case

* add check for switch to grid view

---------

Co-authored-by: wojteknowacki <124166231+wojteknowacki@users.noreply.github.com>
2023-05-18 11:30:05 +02:00
Paweł Chyła
55337b5998
Order details datagrid (#3325)
* Show available channels

* Add price  and updatedAt columns

* Fix sorting, only sort on selected columns

* Sort by channel

* Allow delete name and product type

* Fix show not product found

* Extract mssages

* Product datagrid custom column picker

* Column picker in data grid in dirty hack for bug

* fix storybook props

* Restore Datagrid defalt column picker with custom render

* Add sort by attributes

* Use datagrid loading cells

* Fix product searching

* Show attributes before last updated

* Readonly all fields in datagrid

* Fix creating new datagrid row

* Remove add new procut button from datagrid

* Show only active sorted column

* Temp fix for column filter

* Fix column mismatch

* Add comments and spred props to ColumnPicker

* Cleanup

* Update avatar size and styles

* On row click with hover on row styles

* Use new theme

* Change placeholder image

* Draw rounded image with border

* Readonly product datagrid

* Use new theme colors in datagrid

* Add vertical borders control to datagrid

* Add empty column to add padding

* Add coursor to datagrid

* Restore vertical borders, fix cursor pointer

* Add custom freezed column

* Initial tooltip for column

* Move tooltip to datagrid

* Adjust datagrid colors style, add possibility to select column

* Change datagrid selected cells colors

* Fix typo and extract messages

* Base order  datagrid

* Cleanup Datagrid component

* Cleanup and code refactor

* Remove cursor pointer props from readonlyCell

* Use money cell for total column

* Add custom cell renderers and fix types

* Simple tags implemenrtion for status and payment col

* Add colors from theme

* Make tagCell more dynamic

* Refactor Datagrid file structure

* Add loading indicators

* Selecting column without cells in readonly

* Add sort icons to orders list

* Refactor after CR. fix typos

* Change color of selected colum cell on hover

* Improve selected header text contrast

* Move useColumnPickerColumns to hooks dir with tests

* Add less padding to column picker button

* Remove double border top

* Fix cursor pointer for tagCell and moneyCell

* useGetCellContent hook

* On loading show only one row

* Add missing darkmod color for warning tag

* Refactor columns in datagrid

* Add new macaw theme provider to storybook

* Fix  passing props in datagrid

* Trigger deployment

* Fix column picker in products

* useDatagridColumns

* Fix one more time

* Add column picker with default columns

* Change color for selected header change to textBrandDefault

* Remove unused code, move attributes colums as last

* Cleanup useDatagridColumns

* Improve DatagridProps

* Static datagrid for products (#3144)

* Migrate top nav of product list page to new MacawUI (#3290)

* feat: migrate top nav of product page

* feat: add proper deprecation links

---------

Co-authored-by: Michał Droń <dron.official@yahoo.com>

* Datagrin on order details intial

* Adjust ExtraInfoLines

* Remove padding on datagrid card content

* Remove datagrid card paddding (#3310)

* Disable column icon when no rows in orders

* Datagrid row hover show only when readonly and row clickable

* Implement card view for product list (#3292)

* Add temporary view switcher

* Add basic product tile view

* Bump macaw-ui

* Add ellipsis

* Bump macaw-ui

* Add status dot & fix non-rectangular thumbnails

* Bump macaw-ui

* Add variable size placeholder icon

* Improve loader

* Fix top nav menu key error

* Add pagination

* Add unit tests

* Extract messages

* Extract status color to function

* CR Refactor

* Hold product view state in local storage (#3315)

* Remember view state for product list

* Use util status function for status dots

* Datagrin in orderDraftDetails

* Remove not used components

* Fix for empty column and hover in datagrid for product (#3324)

* Remove datagrid card paddding (#3310)

* Fix for empty column and hover in datagrid for product (#3324)

* Use themeValues from macaw (#3326)

* Upgrade macaw

* Use themeValues

* Use themeValues from macaw (#3326)

* Upgrade macaw

* Use themeValues

* Add empty column from datagrid, improve theme types

* Use theme type from typeof

* Use empty column and themeValues

* Filter empty column from default

* New product header (#3346)

* Extraxt messages

* Remve title left padding

* Fix switching view

* Add margin right to nav button

* Improve view switch

* Update switch view icons

* Add spacing to switch

* Add more space

* Add new filterbar to order list

* Code refactor and tests

* Refactor OrderDraftDetailsDatagrid

* Extract messages

* Refactor OrderDraftDetailsDatagrid

* Update alert messages

* Extract messages

* Write unit tests

* Improve switch component

* Overwrite Pill styles

* Common method to get status color for pills

* Local Pill component POC

* Add ThemeProvider to test wrapper

* Extract messages

* Refactor Pill

* Fix Pill path

* Fix tests mocks

* Remove scrollbar and border bottom

* Add custom border to to datagrid

* Fix borders

* Fix border bottom

* Refactor and cleanup

* Remove not needed selectionActions code

* Move logic code t misc

* Fix scrollbar and zindex datagrid borders

* Fix product tiles condition

* Use utils functions, remove not used code

* Refactor to hooks

* Loading prps instead of disabled

* use getStatusColor

* Move getMenuItems to separate function

* Fix loading props

* Use empty colum hook in OrderDetailsDatagrid

* Fix empty column when save column change

* Fix bottom line in layout overlap

* Show moneCell with discounted price

* Make quantity ediable in order draft datagrid

* Readonly datagrid cells

* Update onyl when column is quantity

* Fix message

* Keep first column in datagrid not removable

* Fix for not existing column

* Add loader over datagrid, fix problem with border top when empty text in variants

* Fix error color and change color in datagrid

* Use formatMoneyAmount

* Fix remove order draft product with discount

* Extract messages

* Add product sku to order draft details datagrid

* Fix loading state and change cell color

* Add MoneyDiscuntedCell

* Use MoneyDiscuntedCell in order draft details datagrid

* Add trash bin icon

* Restor discount modal for order draft summary

* Fix problem with deleting quantity

* Improve await for promises and handler zero quantity error

* Fix column order issue

* Add discount modal box shadow

* Allow decimal as percentage value for discount

* Fix max fixed value

* Remove double border

* Fix z-index issue on discount modal

* Remove padding on order details datagrid

* Add proper error message to common discount modal

* Fix is submit disabled

* Move status as last column in datagrid

* Add padding to money discount cell editor

* Make quantity column smaller

* Fix recalculating disount value

* Fix calculate change discount type

* Store calculated value without triming decimal, trim decimal in input

* Refactor money cells

* markCellsDirty rename to areCellsDirty

* Remove discount from MoneyCell

* Use const to store row height in discount editor

* Fix copy in discount modal

* Remove past on money discount cell

* Remove locale in product varaints

* Fix nullable sku

* Extract messages

* Fix keeping always first column

* Remove padding on tracking info

* Fix story

* Fix render 0 money amount

* Fix displaying not empty string money

* adding new tests: add new product, change quantity, add inline discount, delete product for grid - on orders details view (#3652)

* adding new e2e for grid on orders details view

* merging conflicts fix - and adding new TC numbers to new tests

* trigger tests

* failing tests fixes

---------

Co-authored-by: Michał Droń <dron.official@yahoo.com>
Co-authored-by: Krzysztof Żuraw <9116238+krzysztofzuraw@users.noreply.github.com>
Co-authored-by: Michał Droń <droniu@droniu.dev>
Co-authored-by: wojteknowacki <124166231+wojteknowacki@users.noreply.github.com>
Co-authored-by: wojteknowacki <wojciech.nowacki@saleor.io>
2023-05-18 09:52:13 +02:00
wojteknowacki
757833ca57
test fix create product without sku (#3623) 2023-05-18 09:47:12 +02:00
wojteknowacki
352ac9566b
test fix available for purchase (#3661) 2023-05-18 09:01:34 +02:00
wojteknowacki
dc45c3d090
test: fix for transaction orders test - set local storage to hide navigator banner (#3649) 2023-05-15 14:14:40 +02:00
wojteknowacki
192be719fe
fixing tests: 2505 2506 - should update product to be visible or not in listings (#3648)
* fix tests should update product to be visible in listings, should update product to not be visible in listings

* lock conflict fixes

* update tests: products published or not to new implementation
2023-05-15 14:03:19 +02:00
Karolina Rakoczy
b9bf19ddfb
Fix cypress tests for plugins and gift cards exports (#3626)
* Fix test for plugins

* remove unused import

* Fix plugins

* decrease limit meaasge

* Fix export gift cards

* remove only
2023-05-11 15:44:26 +02:00
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