Commit graph

3940 commits

Author SHA1 Message Date
Jacob Tobiasz
66d6a047d8
Resolve conflicts between 1.12 and 1.13 2023-12-22 13:53:00 +01:00
Jan Góralski
61923954bb
minor #15617 Switch JS session Behat driver to the Symfony Panther (jakubtobiasz)
This PR was merged into the 1.12 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.12
| Bug fix?        | no
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | reactivated #13796
| License         | MIT


Commits
-------
  Add a support for Symfony Panther in the JS-based Behats
  Fix PHPSpec scenario
  Add support for Panther to CookieSetter service
  Run failing scenarios on Panther with using chromedriver
  Bring back the "chrome_headless_second_session" mink session
2023-12-21 15:21:57 +01:00
Jacob Tobiasz
1d48c06ff5
Run failing scenarios on Panther with using chromedriver 2023-12-21 14:23:41 +01:00
Jacob Tobiasz
ed578b3952
feature #15660 [API] Finish covering managing orders (TheMilek)
This PR was merged into the 1.13 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.13 <!-- see the comment below -->                  |
| Bug fix?        | no                                                     |
| New feature?    | yes                                                       |
| BC breaks?      | no                                                       |
| Deprecations?   | no <!-- don't forget to update the UPGRADE-*.md file --> |
| License         | MIT                                                          |

<!--
 - Bug fixes must be submitted against the 1.12 branch
 - Features and deprecations must be submitted against the 1.13 branch
 - Make sure that the correct base branch is set

 To be sure you are not breaking any Backward Compatibilities, check the documentation:
 https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html
-->


Commits
-------
  Cover handling order shipment
  Cover accessing order from payments and shipments
  Cover preventing to view customers cart from the orders resource
  Remove no more valid scenarios
  Use SectionProvider in OrderExtension
  Move applyToCollection logic to private method and use in both cases
  Rename fulfilled_order file to fulfilled
  Add parameter for order state to filter out and fix the OrdrerExtension logic
2023-12-20 19:05:45 +01:00
Jacob Tobiasz
249eb7476f
minor #15639 [API][Admin] Finish covering product scenarios (NoResponseMate)
This PR was merged into the 1.13 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.13 |
| Bug fix?        | no                                                       |
| New feature?    | kinda                                                       |
| BC breaks?      | no                                                       |
| Deprecations?   | no |
| Related tickets | -                      |
| License         | MIT                                                          |

Commits
-------
  [API][Admin] Finish covering product filtering
  [API][Admin] Finish covering product and product taxon sorting
  [API][Admin] More product related scenarios marked no-api
  [API][Admin] Cover seeing applied promotions on variants
  [API][Admin] Refactor viewing product suite split
  [API] Finish covering viewing product attributes
  [API][Admin] Cover managing product associations
  Cleanup
  [API] Cover viewing details of a product
  [Behat] Update step names in scenarios after changing name of steps
2023-12-20 18:48:40 +01:00
Kamil Grygierzec
77cf963b17
Add comments fixes 2023-12-20 17:45:59 +01:00
Kamil Grygierzec
474b1087ac
[Behat] Cover shipping method management 2023-12-20 17:38:40 +01:00
Kamil Grygierzec
ffef436a43
Remove no more valid scenarios 2023-12-20 16:01:04 +01:00
Kamil Grygierzec
fc6aea03a9
Cover preventing to view customers cart from the orders resource 2023-12-20 16:01:04 +01:00
Kamil Grygierzec
272d29a7f6
Cover accessing order from payments and shipments 2023-12-20 16:01:04 +01:00
Kamil Grygierzec
d21340b80d
Cover handling order shipment 2023-12-20 15:57:36 +01:00
Wojdylak
3d3d16b584
[Behat] Update step names in scenarios after changing name of steps 2023-12-20 14:58:29 +01:00
Jan Goralski
610d15cfe7
[API] Cover viewing details of a product 2023-12-20 14:04:58 +01:00
Jacob Tobiasz
ee2768e843
feature #15663 [ApiBundle][Address] Add address log entries operation (Wojdylak)
This PR was merged into the 1.13 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.13
| Bug fix?        | no
| New feature?    | yes
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | N/A
| License         | MIT

Commits
-------
  [ApiBundle][Address] Add address log entries operation
  [ApiBundle][Address] Rename GetAddressLogEntryAction to GetAddressLogEntryCollectionAction
2023-12-20 14:00:49 +01:00
Jan Goralski
a9679a9591
[API][Admin] Cover managing product associations 2023-12-20 13:47:53 +01:00
Jan Goralski
46f3afb02b
[API] Finish covering viewing product attributes 2023-12-20 13:47:53 +01:00
Jan Goralski
d9f9022660
[API][Admin] Refactor viewing product suite split 2023-12-20 13:47:53 +01:00
Jan Goralski
8253bda642
[API][Admin] Cover seeing applied promotions on variants 2023-12-20 13:47:52 +01:00
Jan Goralski
c5e83a88b3
[API][Admin] More product related scenarios marked no-api 2023-12-20 13:47:52 +01:00
Jan Goralski
6639ce0ae4
[API][Admin] Finish covering product and product taxon sorting 2023-12-20 13:47:52 +01:00
Jan Goralski
e71ee0de25
[API][Admin] Finish covering product filtering 2023-12-20 13:47:52 +01:00
Rafikooo
9598e42336
[Scenarios] Improve statistics scenarios 2023-12-20 11:02:45 +01:00
Wojdylak
166009906a
[ApiBundle][Address] Add address log entries operation 2023-12-20 10:43:50 +01:00
Jan Góralski
e06f9165e9
minor #15630 Finish covering managing product-related resources (jakubtobiasz)
This PR was merged into the 1.13 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.13
| Bug fix?        | no
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | n/a
| License         | MIT


Commits
-------
  Add missing @no-api tags in editing_product_review.feature
  Add missing @api tags in recalculating_product_average_rating.feature
  Cover scenarios in sorting_product_variants_within_product_by_position.feature
  Cover scenarios in filtering_product_reviews.feature
  Provide post-CR fixes
  Remove duplicated step
  [Behat][API] Minor improvements in managing variants contexts
  [Behat][API] Refactor scenarios of sorting variants to have the same for UI and API contexts
  [Behat] Fix scenario of browsing accepted reviews for case-sensitive PostreSQL
2023-12-18 09:14:32 +01:00
Grzegorz Sadowski
5709d84807
[Behat] Fix scenario of browsing accepted reviews for case-sensitive PostreSQL 2023-12-15 11:26:58 +01:00
Grzegorz Sadowski
a5163fe9dc
Merge branch '1.12' into 1.13
* 1.12:
  [Admin] Change name of official support section in menu and adjust translations
  Add all translations & change label
  Add business support CTA to admin panel
  Remove fr translation
  Add tests that form doesn't display Extra fields error after login in checkout
  Update src/Sylius/Bundle/CoreBundle/Form/Type/Checkout/AddressType.php
  [Checkout] Prevent extra fields when login in on addressing page
2023-12-15 10:26:43 +01:00
Grzegorz Sadowski
6f35576c05
[Behat][API] Refactor scenarios of sorting variants to have the same for UI and API contexts 2023-12-15 10:25:48 +01:00
Jacob Tobiasz
d2b2b674d2
Cover scenarios in filtering_product_reviews.feature 2023-12-15 06:42:58 +01:00
Jacob Tobiasz
905ec5e240
Cover scenarios in sorting_product_variants_within_product_by_position.feature 2023-12-15 06:42:57 +01:00
Jacob Tobiasz
9cf2423b53
Add missing @api tags in recalculating_product_average_rating.feature 2023-12-15 06:42:23 +01:00
Jacob Tobiasz
0bdffa0674
Add missing @no-api tags in editing_product_review.feature 2023-12-15 06:42:23 +01:00
Wojdylak
4036f1f132
[Behat] Add API test coverage for features/promotion/tracking_usage folder 2023-12-13 14:32:18 +01:00
Wojdylak
59c2798883
[ApiBundle][CatalogPromotion] Add order filters 2023-12-13 13:37:26 +01:00
Wojdylak
9e8e797c81
[ApiBundle][ProductTaxon] Move deleting productTaxon to productTaxon resource 2023-12-13 13:14:42 +01:00
Jacob Tobiasz
f12a530c7f
bugfix #15435 [Checkout] Prevent extra fields when login in on addressing page (Jibbarth)
This PR was merged into the 1.12 branch.

Discussion
----------

| Q               | A   |
|-----------------|-----|
| Branch?         | 1.12 |
| Bug fix?        | yes |
| New feature?    | no |
| BC breaks?      | no |
| Deprecations?   | no |
| Related tickets | fixes #15183 |
| License         | MIT |

Refs video in #15183

When we login in addressing page after submit once the page, the reload process after login resubmit data, and keep sending `form[customer][email]`, that it doesn't be added in form. 

So I unset these data on pre-submit. 
I also change the csrf_error message for something more "understandable".

By this way, we can still have previous submitted data for address fields.

![image](https://github.com/Sylius/Sylius/assets/3168281/e53f0c5a-8fe7-4bd7-81b9-021eb8d819b7)

The other way, suggested by @Wojdylak, is to change this line https://github.com/Sylius/Sylius/blob/1.12/src/Sylius/Bundle/UiBundle/Resources/private/js/sylius-api-login.js#L50 
by 
```
window.location = window.location.href;
``` 

But using it, all already filled data are lost.

WDYT ? Would it be acceptable to lose such data, or should we keep them ? 

Commits
-------
  [Checkout] Prevent extra fields when login in on addressing page
  Update src/Sylius/Bundle/CoreBundle/Form/Type/Checkout/AddressType.php
  Add tests that form doesn't display Extra fields error after login in checkout
  Remove fr translation
2023-12-12 10:54:06 +01:00
Jacob Tobiasz
d3a441f277
minor #15623 [API][Admin] Cover inventory (NoResponseMate)
This PR was merged into the 1.13 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.13 |
| Bug fix?        | no                                                       |
| New feature?    | no                                                       |
| BC breaks?      | no                                                       |
| Deprecations?   | no |
| Related tickets | -                      |
| License         | MIT                                                          |


Commits
-------
  [API][Admin] Cover inventory
2023-12-11 09:09:09 +01:00
Jibé Barth
34a36bc0cc
Add tests that form doesn't display Extra fields error after login in checkout 2023-12-09 12:05:37 +01:00
Jan Goralski
76b6a2145d
[API][TaxRate] Treat missing/null amount as default 2023-12-08 13:57:31 +01:00
Jan Goralski
86e803b2bf
[API][Admin] Cover inventory 2023-12-08 13:17:58 +01:00
Jan Goralski
0e822a99cf
[API] Finish covering taxation scenarios 2023-12-08 13:17:42 +01:00
Jacob Tobiasz
da19017f80
minor #15609 [Maintenance][API] Marking more inapplicable scenarios with no-api (NoResponseMate)
This PR was merged into the 1.13 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.13 |
| Bug fix?        | no                                                       |
| New feature?    | no                                                       |
| BC breaks?      | no                                                       |
| Deprecations?   | no |
| Related tickets | -                      |
| License         | MIT                                                          |


Commits
-------
  [Maintenance][API] Marking more inapplicable scenarios with no-api
2023-12-07 15:42:59 +01:00
Kamil Grygierzec
b2c9fa2f18
Validate Paypal express checkout sandbox field type 2023-12-07 00:30:25 +01:00
Jan Goralski
4816d273c0
[Maintenance][API] Marking more inapplicable scenarios with no-api 2023-12-06 18:50:24 +01:00
Jan Góralski
f9fac11013
minor #15549 Validate payment method's gateway configuration (TheMilek)
This PR was merged into the 1.13 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.13 <!-- see the comment below -->                  |
| Bug fix?        | no                                                       |
| New feature?    | yes                                                       |
| BC breaks?      | no                                                       |
| License         | MIT                                                          |

<!--
 - Bug fixes must be submitted against the 1.12 branch
 - Features and deprecations must be submitted against the 1.13 branch
 - Make sure that the correct base branch is set

 To be sure you are not breaking any Backward Compatibilities, check the documentation:
 https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html
-->
Continuation of https://github.com/Sylius/Sylius/pull/15530

Commits
-------
  Validate gateway configuration
  [Behat] Adjust tests
  Early return the unexisting validation groups
  Define gateway config validation groups by parameters
  Remove constraints from gateway factory forms
  Use custom validator for only checking existing factories
  Add GatewayConfigGroupsGenerator and use it for validation groups delivery
  Update upgrade file
2023-12-06 14:25:53 +01:00
Wojdylak
9a4a9220b0
[ApiBundle][PromotionCoupon] Flattening structure for coupon generation 2023-12-06 13:11:56 +01:00
Wojdylak
8e8d5a69e6
[ApiBundle] Add generate promotion coupons action 2023-12-06 13:11:54 +01:00
Kamil Grygierzec
5e7fa5a555
[Behat] Adjust tests 2023-12-06 13:05:27 +01:00
Jan Goralski
3335ccae96
[Maintenance] Fix postgres behats 2023-12-05 11:27:32 +01:00
Jacob Tobiasz
8e2154d37b
Fix product name's casing in the Behat scenario 2023-12-05 11:15:44 +01:00
Wojdylak
99c3648f51 Cover scenarios in order_details folder 2023-12-04 16:02:57 +01:00