Commit graph

3670 commits

Author SHA1 Message Date
Rafikooo
15b306d060
[Scenarios] Add @no-api tag for Addressing an order and sign in scenario 2023-06-22 05:25:17 +02:00
Rafikooo
41274eb8d7
[Scenarios] Add scenario for not seeing disabled variants 2023-06-15 23:44:08 +02:00
TheMilek
fc0969c6de
Fixes after reviews 2023-06-15 14:28:38 +02:00
Grzegorz Sadowski
025df951b5
feature #15092 Cover Seeing payment method instructions behat API scenario (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?    | no                                                       |
| 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
-->


Commits
-------

3c6002b63f Cover Seeing payment method instructions behat scenario
2023-06-15 14:19:23 +02:00
Grzegorz Sadowski
5856691866
feature #15098 Add @no-api tag to preventing to pay for cancelled order scenario (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?    | no                                                       |
| 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
-->


Commits
-------

200b4409f5 Add @no-api tag to preventing to pay for cancelled order scenario
2023-06-15 14:13:48 +02:00
TheMilek
3c6002b63f
Cover Seeing payment method instructions behat scenario 2023-06-15 13:46:11 +02:00
TheMilek
8162a55854
Seeing order locale API scenario coverage 2023-06-15 08:08:34 +02:00
TheMilek
200b4409f5
Add @no-api tag to preventing to pay for cancelled order scenario 2023-06-14 13:23:12 +02:00
TheMilek
7d2b1c07ad
Viewing children taxons API scenario ceverage 2023-06-13 14:08:00 +02:00
dawkaa
7ac19488f5 Added tests to sorting user orders
I added tests to sorting user orders.
2023-06-09 16:11:22 +08:00
Grzegorz Sadowski
5560fb447c
Merge branch '1.12' into 1.13
* 1.12:
  Fix the press enter cause attribute deletion
  [Behat][Postgres][Promotion] Disable sorting scenarios for nullable fields
  [UI][Behat] Sorting catalog promotions
  [UI][Behat] Sorting promotion coupons
  [Admin] Fix inability of sorting promotion coupons and catalog promotions
2023-05-19 14:16:23 +02:00
Grzegorz Sadowski
fd3fbc95c0
bug #15022 [Admin] Fix inability of sorting promotion coupons and catalog promotions (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 #14131 |
| License         | MIT                                                          |

Inb4 someone asks why there's no API coverage or `no-api` tags:
- sorting is possible via API so `no-api` does not apply
- coupons have no crud in API ATM
- catalog promotions have no sorting specified in API

The 2 last points would be doable in this PR, but then it would have to go to 1.13 since new features would be introduced, and I see no point in blocking the bugfix part alone for 1.12.

Commits
-------

9cefb206b0 [Admin] Fix inability of sorting promotion coupons and catalog promotions
6d170e5127 [UI][Behat] Sorting promotion coupons
8564ed5431 [UI][Behat] Sorting catalog promotions
e88b0f4eaa [Behat][Postgres][Promotion] Disable sorting scenarios for nullable fields
2023-05-19 13:58:45 +02:00
Grzegorz Sadowski
a87d37221b
feature #15054 Cover viewing different price for different product variants API scenario (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?    | 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
-->


Commits
-------

e37791f5f7 Cover viewing different price for different product variants API scenario
2023-05-19 08:24:50 +02:00
Grzegorz Sadowski
e7f0f95ca3
feature #15028 Cover viewing product associations via API (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?    | slighly                                                     |
| 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
-->
Until now, we were able to see all associated products for a given product, including those that were disabled. With the new implementation, only enabled products are displayed when accesing `ProductAssociation` endpoint

Commits
-------

c9bff1ca15 Cover viewing product associations via API
2023-05-19 07:13:24 +02:00
TheMilek
c9bff1ca15
Cover viewing product associations via API 2023-05-18 14:20:19 +02:00
TheMilek
e37791f5f7
Cover viewing different price for different product variants API scenario 2023-05-18 14:14:21 +02:00
Grzegorz Sadowski
18211a7687
feature #14944 Cover inform customer about order total changes scenarios in API (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 | contains fixes from #14941 
| License         | MIT


Commits
-------

b0c17b1f65 Cover inform_customer_about_order_total_changes scenarios in API
c126bf3854 Remove dead code
48a4bdf9a6 Add a past tense for "I proceed through checkout process" step
2a77873fdc Fix CI
2023-05-18 13:31:36 +02:00
Jan Góralski
44a54e6f1f
minor #15045 Uncomment editing customer profile steps (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?    | no                                                      |
| BC breaks?      | no                                                       |
| Deprecations?   | no <!-- don't forget to update the UPGRADE-*.md file --> |
| Related tickets |  https://github.com/Sylius/Sylius/pull/12633                      |
| 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
-->
Can be safely uncommented as https://github.com/Sylius/Sylius/pull/12633 is no more valid


Commits
-------
  Uncomment editing customer profile steps
2023-05-18 13:30:34 +02:00
Jan Góralski
bec47fb38a
bugfix #14480 Missing length validation for label in cart promotion translations (ernestWarwas)
This PR was merged into the 1.13 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.13                 |
| Bug fix?        | yes                                                       |
| New feature?    | no                                                     |
| BC breaks?      | no                                                       |
| Related tickets | partially #14379                      |
| License         | MIT                                                          |

Before:
<img width="1047" alt="image" src="https://user-images.githubusercontent.com/28228691/197703187-df499c37-5e17-47c4-bac3-b26a9ab74f64.png">

After:
<img width="1433" alt="image" src="https://user-images.githubusercontent.com/28228691/197703323-1004a8a9-6cb0-48f5-804b-0957dddd3a1d.png">


<!--
 - Bug fixes must be submitted against the 1.11 branch
 - Features and deprecations must be submitted against the 1.12 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
-------
  Missing lenght validation for label in cart promotion translations
  Move PromotionTranslation validation from the from to the validation config
2023-05-18 13:20:31 +02:00
Jan Góralski
e6723044f1
feature #15015 [API] Product variants with options (Rafikooo)
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
-->

Shop API coverage


Commits
-------
  [Scenario][API] Product variants with options
  [Behat][API] Handle query parameters within the client's index method
  [Behat][Cart][ProductOptions] Refactor behat context
  [Behat] Refactor viewing enabled variants
  [Behat][API] Add step implementation for product variants with options
2023-05-18 12:35:31 +02:00
TheMilek
fc316f7107
Uncomment editing customer profile steps 2023-05-18 10:46:45 +02:00
TheMilek
a3e6c36d19
Add API tag to viewing products with disabled variants scenarios 2023-05-18 10:45:54 +02:00
Jakub Tobiasz
c5e34f29d3
Move PromotionTranslation validation from the from to the validation config 2023-05-18 09:43:00 +02:00
Jakub Tobiasz
48a4bdf9a6
Add a past tense for "I proceed through checkout process" step 2023-05-18 06:28:00 +02:00
Jakub Tobiasz
b0c17b1f65
Cover inform_customer_about_order_total_changes scenarios in API 2023-05-18 06:28:00 +02:00
Rafikooo
952e62f844
[Behat] Refactor viewing enabled variants 2023-05-17 17:55:52 +02:00
Rafikooo
1200f8cd7b
[Behat][Cart][ProductOptions] Refactor behat context 2023-05-17 17:55:52 +02:00
Rafikooo
46ef50a2fe
[Scenario][API] Product variants with options 2023-05-17 17:55:52 +02:00
Kevin Kaniaburka
2f485ac9ec
[Behat] Minor fix in a scenario 2023-05-17 16:55:21 +02:00
Ibes Mongabure
a7b1e87414
Update features/cart/shopping_cart/resolving_default_shipping_method_in_cart_summary_based_on_method_position.feature
Co-authored-by: Jan Góralski <jan.wojciech.goralski@gmail.com>
2023-05-17 16:55:21 +02:00
Ibes
fb4a67793d
Add @api tag 2023-05-17 16:55:21 +02:00
Ibes
359cb3a31d
Behat scenario 2023-05-17 16:55:21 +02:00
Jan Goralski
e88b0f4eaa
[Behat][Postgres][Promotion] Disable sorting scenarios for nullable fields 2023-05-16 15:49:08 +02:00
Jan Goralski
8564ed5431
[UI][Behat] Sorting catalog promotions 2023-05-15 13:57:45 +02:00
Jan Goralski
6d170e5127
[UI][Behat] Sorting promotion coupons 2023-05-15 11:17:31 +02:00
Jacob Tobiasz
e63ef1d443
feature #14994 [Products][Taxon] Allowing deleting a taxon that is a main taxon of a product (Rafikooo)
This PR was merged into the 1.13 branch.

Discussion
----------

 Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         |  1.13 <!-- see the comment below -->                  |
| Bug fix?        | kind of                                                      |
| New feature?    | yes                                                       |
| BC breaks?      | no                                                      |
| Deprecations?   | no<!-- don't forget to update the UPGRADE-*.md file --> |
| Related tickets | https://github.com/Sylius/Sylius/pull/14791  |
| License         | MIT                                                          |


This PR changes (or more accurately unifies) the way we can delete taxon in Sylius.
Previously, we could delete a taxon that is not `main_taxon` for any product, and we could not delete a taxon in the opposite case.

This PR allows us to remove taxon that is `main_taxon` for some product by setting the relationship to `NULL`.

Alternatively, we could prevent the deletion of taxon in both cases. Let's bring this up for discussion 💬 

Commits
-------
  [Feature] Add deleting a taxon that is a main taxon of a product scenario
  [API][Behat][Taxon] Add step implementation
  Revert "[Behat] Describe scenario for messing up products assignments after trying to delete taxon
  [Behat][UI] Change isMainTaxonChosen method name
  [UI][Behat][Taxon] Add step implementation
  [Products] Add ON DELETE SET NULL to the Product mainTaxon field mapping
  [Migrations] Alter the product table
2023-05-12 20:58:36 +02:00
Kevin Kaniaburka
8da576c01d
[Behat] Minor fix in a scenario 2023-05-12 12:07:31 +02:00
Jacob Tobiasz
9ab7a66f7b
bugfix #14940 default shipping methods order by position (ehibes)
This PR was merged into the 1.12 branch.

Discussion
----------

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


I propose this modification, in order that the default shipping method is selected according to the position of the methods in the admin, even when the customer does not have an address yet.

<!--
 - 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
-------
  default shipping methods order by position
  Merge branch 'Sylius:1.12' into 1.12
  Merge branch 'Sylius:1.12' into 1.12
  Behat scenario
  Add @api tag
  Update features/cart/shopping_cart/resolving_default_shipping_method_in_cart_summary_based_on_method_position.feature
2023-05-12 11:21:04 +02:00
TheMilek
1f9e9419c0
Cover viewing_only_enabled_taxons_in_taxon_menu.feature scenario 2023-05-10 12:18:43 +02:00
Ibes Mongabure
bae0067d88
Update features/cart/shopping_cart/resolving_default_shipping_method_in_cart_summary_based_on_method_position.feature
Co-authored-by: Jan Góralski <jan.wojciech.goralski@gmail.com>
2023-05-10 09:11:59 +02:00
Rafikooo
9d7c70d5a5
[UI][Behat][Taxon] Add step implementation 2023-05-10 08:34:37 +02:00
Rafikooo
a3e81518e1
Revert "[Behat] Describe scenario for messing up products assignments after trying to delete taxon
This reverts commit baa01c01
2023-05-10 08:34:37 +02:00
Rafikooo
cc137a567c
[API][Behat][Taxon] Add step implementation 2023-05-10 08:31:40 +02:00
Rafikooo
9eb7a3134a
[Feature] Add deleting a taxon that is a main taxon of a product scenario 2023-05-10 08:28:43 +02:00
Jan Góralski
f3c6463e7a
minor #15001 Cover editing customer profile scenarios in API (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 | 
| License         | MIT


Commits
-------

6426db133e Cover editing customer profile scenarios in API
2023-05-08 13:31:57 +02:00
Jakub Tobiasz
6426db133e
Cover editing customer profile scenarios in API 2023-05-05 11:04:14 +02:00
TheMilek
e995e95d44
Merge branch '1.12' into 1.13
* 1.12:
  Fix being unable to add two product attributes at once
  Add a Behat scenario reproducing being unable to add two product attributes at once
2023-05-04 13:22:54 +02:00
Kamil Grygierzec
e5d808bcb7
minor #15002 Cover product integrity scenarios in API (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 | 
| License         | MIT

Commits
-------

5c319cc0b6 Cover product integrity scenarios in API
2023-05-02 10:53:03 +02:00
Kamil Grygierzec
339e69f67e
minor #15003 Cover seeing default shipping method scenarios in API (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 | 
| License         | MIT


Commits
-------

69e83ad372 Cover seeing default shipping method scenarios in API
2023-05-02 10:49:47 +02:00
Jakub Tobiasz
e4d8d790b2
Add a Behat scenario reproducing being unable to add two product attributes at once 2023-05-02 07:51:16 +02:00