Commit graph

3571 commits

Author SHA1 Message Date
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
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
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
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
Francis Hilaire
3d72280fa9
Add Scenario to test default variant 2023-11-20 19:31:27 +01:00
TheMilek
8431d9bbdf
Prevent removing taxon if it is already used in promotion rule 2023-09-15 08:49:37 +02:00
TheMilek
ff0eeb9949
[UI] Prevent removing product if it is already used in promotion rule 2023-09-14 16:33:19 +02:00
Grzegorz Sadowski
67e197213c
bug #12519 [ProductBundle] Add validation for product meta keywords & description (DieterHolvoet, jakubtobiasz)
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 | 
| License         | MIT

<!--
 - Bug fixes must be submitted against the 1.7 or 1.8 branch (the lowest possible)
 - Features and deprecations must be submitted against the master 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
-------

bfd58f38e7 Add validation for product meta keywords & description
d44fb803ab Provide Behat scenarios covering validating meta keywords and meta description fields
96586c8c13 Fix CI
2023-09-14 15:53:28 +02:00
Grzegorz Sadowski
bc117aba6d
bug #15268 Fix configuring amount for cart promotions item percentage discount actions (TheMilek, NoResponseMate)
This PR was merged into the 1.12 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.12 <!-- see the comment below -->                  |
| Bug fix?        | yes                                                       |
| New feature?    | no                                                      |
| 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
-->
Same issue like [here](https://github.com/Sylius/Sylius/pull/15214)

Commits
-------

92562de372 Fix configuring amount for cart promotions item percentage discount actions
eb13a2969f [Behat][Promotion] Update percentage decimal places tests
2023-09-14 13:13:27 +02:00
Jan Goralski
eb13a2969f
[Behat][Promotion] Update percentage decimal places tests 2023-09-13 16:26:22 +02:00
Jacob Tobiasz
a2eeee131a
Cover "jumping" taxons while moving with Behat scenarios 2023-09-13 14:51:00 +02:00
Jacob Tobiasz
d44fb803ab
Provide Behat scenarios covering validating meta keywords and meta description fields 2023-09-13 13:53:22 +02:00
Jacob Tobiasz
f8a5b221d9
Add a scenario covering finalizing order's payment when a one item has become tracked 2023-09-07 10:21:27 +02:00
TheMilek
92562de372
Fix configuring amount for cart promotions item percentage discount actions 2023-09-05 08:44:44 +02:00
Grzegorz Sadowski
8dcf095c27
bug #15225 Fix updating product taxons positions (jakubtobiasz)
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 #11218
| License         | MIT


Commits
-------

07cff26e31 Fix updating product taxons positions
8a18c4de81 Extract positioning logic
25414ef287 Provide post-CR fixes
31f5b4f648 Merge positioner.xml with services.xml
1ff37abda3 Improve Behat scenario
2023-08-31 08:44:30 +02:00
Jacob Tobiasz
1ff37abda3
Improve Behat scenario
Co-authored-by: Jan Góralski <jan.wojciech.goralski@gmail.com>
2023-08-31 07:46:49 +02:00
Jacob Tobiasz
60ea9c2ba9
bugfix #15252 [Admin][Taxon] Fix slug generation to work based on the parent field (NoResponseMate)
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 #13749, replaces #13889                      |
| License         | MIT                                                          |

Commits
-------
  [Admin][Taxon] Fix slug generation to work based on the parent field
  [Behat][Admin][Taxon] Autogenerate slug based on selected parent
  [Admin][Taxon] Fallback from parent code to id when generating a slug
2023-08-28 16:12:48 +02:00
Jacob Tobiasz
c30131f91b
bugfix #14806 [Admin][ProductOptions] Changed form ProductOptionChoiceType to Produ… (ulinskas)
This PR was merged into the 1.12 branch.

Discussion
----------

…ctOptionAutocompleteType

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.12 <!-- see the comment below -->                  |
| Bug fix?        | yes                                                       |
| New feature?    | no                                                       |
| BC breaks?      | no                                                       |
| Deprecations?   | no <!-- don't forget to update the UPGRADE-*.md file --> |
| Related tickets | fixes #13742                      |
| 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
-->

Before:
![image](https://github.com/Sylius/Sylius/assets/53942444/07723697-2297-4662-b963-e95c7215603a)

After:
![image](https://github.com/Sylius/Sylius/assets/53942444/10e706d8-441a-4080-b3e6-af745cc402b7)



Commits
-------
  [Admin][ProductOptions] Changed form ProductOptionChoiceType to ProductOptionAutocompleteType
  Revert BC breaking changes
  minor improvements
  Show option name as a choice name instead of code
  Fix Main Taxon autocomplete scenarios
2023-08-28 06:57:33 +02:00
Jacob Tobiasz
76347c589b
bugfix #15250 [Admin][Country] Add violation for adding provinces with duplicated codes or names (NoResponseMate)
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 | -                      |
| License         | MIT                                                          |

Commits
-------
  [Country] Add violation for adding provinces with duplicated codes
  [Behat][Admin][Country] Tests for saving duplicated provinces
  Update phpstan baseline
  [Country] Additional validation for duplicated provinces names
  [Behat][Admin][Country] Validation of saving duplicated province names
2023-08-28 06:55:36 +02:00
TheMilek
d3d02d42d1
Show option name as a choice name instead of code 2023-08-25 13:36:26 +02:00
TheMilek
8448d136df
Fix error with being unable to add product review when the user is logged in by remember me option 2023-08-25 12:27:41 +02:00
Jan Goralski
a24c696fdf
[Admin][Taxon] Fallback from parent code to id when generating a slug 2023-08-25 10:48:44 +02:00
Jan Goralski
86807fb177
[Behat][Admin][Country] Validation of saving duplicated province names 2023-08-25 08:40:12 +02:00
Jan Goralski
2d5aa6864f
[Behat][Admin][Taxon] Autogenerate slug based on selected parent 2023-08-24 15:58:26 +02:00
Jan Goralski
c46c713c5f
[Behat][Admin][Country] Tests for saving duplicated provinces 2023-08-24 10:44:49 +02:00
Jacob Tobiasz
25414ef287
Provide post-CR fixes 2023-08-18 17:53:10 +02:00
Grzegorz Sadowski
649a68b510
bug #15218 Fix attributes creation while the default locale is not available in our store (TheMilek, NoResponseMate)
This PR was merged into the 1.12 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.12 <!-- see the comment below -->                  |
| Bug fix?        | yes                                                       |
| New feature?    | no                                                       |
| BC breaks?      | no                                                       |
| Deprecations?   | no <!-- don't forget to update the UPGRADE-*.md file --> |
| Related tickets | fixes [#X](https://github.com/Sylius/Sylius/issues/12112)                     |
| 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
-------

ec4d4d890f Remove usage of defaultLocaleCode from SelectAttributeChoicesCollectionType
fd1834479d Use localeCode in ProductAttribute form to prevent logic from breaking when not using default locale
a959f7c4fc [Behat] Add scenario for checking if attribute is correctly added with values
f297799825 Update upgrade file
a9546e0081 Fix BC Break in SelectAttributeChoicesCollectionType
2023-08-18 06:50:08 +02:00
Jan Goralski
a9546e0081
Fix BC Break in SelectAttributeChoicesCollectionType 2023-08-17 15:17:54 +02:00
Jacob Tobiasz
bd61d53a88
Prevent skipping choosing payment step once skipping payment step allowed, but no payment method is available 2023-08-17 13:52:02 +02:00
Jacob Tobiasz
07cff26e31
Fix updating product taxons positions 2023-08-16 08:53:03 +02:00
TheMilek
a959f7c4fc
[Behat] Add scenario for checking if attribute is correctly added with values 2023-08-10 16:49:35 +02:00
Grzegorz Sadowski
163953bf8e
bug #15214 Fix configuring amount for catalog promotions fixed discount actions (TheMilek)
This PR was merged into the 1.12 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.12 <!-- see the comment below -->                  |
| Bug fix?        | yes                                                       |
| New feature?    | no                                                      |
| BC breaks?      | no                                                     |
| Deprecations?   | yes <!-- don't forget to update the UPGRADE-*.md file --> |
| Related tickets | fixes [#X](https://github.com/Sylius/Sylius/issues/15193)                     |
| 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
-->
it is now possible to configure decimal amounts with comma without validation errors

Commits
-------

e85e30b553 Fix configuring amount for catalog promotions fixed discount actions
2023-08-10 13:37:57 +02:00
TheMilek
e85e30b553
Fix configuring amount for catalog promotions fixed discount actions 2023-08-07 13:34:16 +02:00
Grzegorz Sadowski
8589e7e79b
[Behat] Fix minor mistake in names of scenarios for receiving discount according to promotions priorities 2023-08-04 10:16:08 +02:00
TheMilek
cecee76932
Fix cart promotion percentage discount to be rounded to 2 decimal places 2023-08-03 08:24:06 +02:00
TheMilek
a3ff2373e9
Fix catalog promotion percentage discount to be rounded to 2 decimal places 2023-08-02 11:49:49 +02:00
Grzegorz Sadowski
cb85edf3cf
[Behat] Change step name for configuring tax calculation strategy on channel 2023-08-01 09:21:41 +02:00
Grzegorz Sadowski
89e5cceef5
[Behat] Minor improvements to scenarios for applying taxes based on units calculation strategy 2023-08-01 09:21:38 +02:00
Grzegorz Sadowski
a3fe405150
[Behat] Cover the order item units based tax calculation strategy with scenarios 2023-08-01 09:21:37 +02:00
Grzegorz Sadowski
03031fd19a
bug #15148 Fix rendering admin creation form with errors (jakubtobiasz, NoResponseMate)
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 | replaces #13241
| License         | MIT

Previously, when an avatar was added while creating a new administrator, once any error occurred, Sylius was throwing `500` due to being unable to create a CSRF token for the delete button.

Commits
-------

b8576ddbda Fix rendering admin creation form with errors
1394309b87 [Behat][Admin] Cover validation errors while adding a new avatar
2023-07-28 15:18:31 +02:00
TheMilek
eb23076294
Add behat scenarios 2023-07-28 11:29:33 +02:00
Jan Goralski
1394309b87
[Behat][Admin] Cover validation errors while adding a new avatar 2023-07-28 11:27:22 +02:00
Grzegorz Sadowski
889df121e6
bug #15170 Prevent placing an order with a disabled shipping method (jakubtobiasz)
This PR was merged into the 1.12 branch.

Discussion
----------

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

Currently, when we disable a shipping method, and someone is after the shipping method choice step and has the disabled shipping method selected, they'll be able to place the order. After merging this PR, the customer is going to see 
> The "%shippingMethodName%" shipping method is not available, please choose another one.
message.

Commits
-------

f95513cc39 Add behat scenario covering preventing a placing an order with a disabled shipping method
f4603f9eb7 Prevent placing an order with not available shipping method
d70afa1951 Fix static analysis
a267e2ea3e Provide post-CR fixes
2023-07-20 15:26:19 +02:00
Jacob Tobiasz
a267e2ea3e
Provide post-CR fixes 2023-07-20 12:40:56 +02:00
Jacob Tobiasz
d228e2f5cf
minor #15157 [Issue 15151] - Check manager before refreshing object (ulinskas)
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 #15151                       |
| License         | MIT                                                          |



Commits
-------
  check before refreshing from db
  Update OrderController.php with early return
  Add behat scenario covering expires session while cart updating
  Adjust scenarios to use less technical language
2023-07-20 08:07:50 +02:00
Jacob Tobiasz
f445142034
Adjust scenarios to use less technical language 2023-07-17 20:03:19 +02:00
Jacob Tobiasz
f4603f9eb7
Prevent placing an order with not available shipping method 2023-07-17 14:47:15 +02:00
Jacob Tobiasz
f95513cc39
Add behat scenario covering preventing a placing an order with a disabled shipping method 2023-07-17 13:18:55 +02:00