Commit graph

75 commits

Author SHA1 Message Date
Jacob Tobiasz
66d6a047d8
Resolve conflicts between 1.12 and 1.13 2023-12-22 13:53:00 +01:00
Jacob Tobiasz
1d48c06ff5
Run failing scenarios on Panther with using chromedriver 2023-12-21 14:23:41 +01:00
Rafikooo
9598e42336
[Scenarios] Improve statistics scenarios 2023-12-20 11:02:45 +01:00
Jan Goralski
4816d273c0
[Maintenance][API] Marking more inapplicable scenarios with no-api 2023-12-06 18:50:24 +01:00
Rafikooo
8a523e43f9
[Behat] Apply the decimal part of the price in every scenario 2023-12-01 03:48:01 +01:00
Rafikooo
7bcf3f0b33
[Behat] Improve the dashboard scenarios 2023-12-01 03:48:01 +01:00
Rafikooo
78b8ddb456
[Behat] Unify the money format across scenarios 2023-12-01 03:48:00 +01:00
Grzegorz Sadowski
70107318d0
Merge branch '1.12' into 1.13
* 1.12:
  Add a conflict for doctrine/orm:2.15.3
  Ignore ApiPlatform\Core\Api\IriConverterInterface DeprecatedInterface Psalm error
  Ignore ApiPlatform\Core\Api\IriConverterInterface DeprecatedClass Psalm error
  Fix misleading signing in the admin panel feature description
  Update PHPStan baseline file
  [PHPStan] Upgrade to level 6 (#14019)
  [Maintenance] Update the copyright block
  [Docs] Update Vision role
  [Fixture] Improve LazyOption performance
  [CS][DX] Refactor
2023-06-23 08:11:04 +02:00
Mateuszry
e6a5073920
Fix misleading signing in the admin panel feature description 2023-06-22 10:22:47 +02:00
Grzegorz Sadowski
95fa57af77
Merge branch '1.12' into 1.13
* 1.12:
  Logout Admin User after being disabled
  [ApiBundle] Remove no longer needed mapping configuration
  [API] Prepend configuration with API Platform mapping
2023-02-13 12:03:17 +01:00
Jakub Tobiasz
ab84ad6bdb
Logout Admin User after being disabled 2023-02-10 16:33:20 +01:00
Grzegorz Sadowski
9a2b6523ac
Merge branch '1.12' into 1.13
* 1.12:
  Fix CI
  Update Plus' dependencies' versions requirements
  Update sylius_plus_installation.rst
  Update versions in the "Submitting a Patch" doc
  Add adjusting shop regex section to disabling-localised-urls.rst
  [Architecture] Ensure HTTP errors are not dispatched in command handlers
  [Behat] add scenario for disabled admin
  Added promotion form theme override in UPGRADE-1.9.md
2023-02-10 08:50:06 +01:00
SirDomin
619464c028
[Behat] add scenario for disabled admin 2023-02-03 14:01:56 +01:00
Jakub Tobiasz
90fa4111b1
Drop unneeded @javascript tag 2023-01-12 13:27:44 +01:00
Mateusz Zalewski
6193a33da8
feature #14153 [Admin][UI][API] Reset password validation (NoResponseMate)
This PR was merged into the 1.12 branch.

Discussion
----------

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

Based on #14147

Extracted it to not mix the concepts as the base PR only touches UI, but the validation is for both UI and API.

Commits
-------

6c1336a886 Add administrator password reset ui tests
ad5cf70619 [Admin][UI] Rendering the reset password page
5f845b1c83 Move ResetPassword command and handler into Core
99dd0b2eca [Admin][UI] Password resetting
f430bfb8c2 [Behat][Admin] Better elements' names in ResetPasswordPage
c37d52f999 [Admin][Core] Extract ResetPassword message dispatching to a standalone service
ea77ea005c [Behat] Fix admin's logging in logic
23ef23e223 [Behat][Admin] Fix and cleanup of password resetting
f6ce7838cb Fix sylius.admin.login.before_form event's priorities
53542d27db [Core] Remove "experimental" tag from ResetPassword related classes
ddbfa821e8 [Behat] More precise password changed notification check
0c596f6d41 [Admin][UI] Rework password reset template events
3ede1e5532 [Admin][UI] Add completely forgotten password reset email link
5c320f0ca3 [API][UI] Add validation for expired admin password reset token
fd24b11ee7 [API][UI] Add password validation to admin's password reset workflow
2022-07-21 16:15:41 +02:00
Jan Goralski
fd24b11ee7
[API][UI] Add password validation to admin's password reset workflow 2022-07-21 15:52:29 +02:00
Jan Goralski
5c320f0ca3
[API][UI] Add validation for expired admin password reset token 2022-07-21 15:35:57 +02:00
Jan Goralski
99dd0b2eca
[Admin][UI] Password resetting 2022-07-21 15:23:40 +02:00
Jan Goralski
6c1336a886
Add administrator password reset ui tests 2022-07-21 15:22:52 +02:00
Grzegorz Sadowski
da8bda686d
feature #14159 [UI] Redirect to previous filtered page after perform any action from index resource page (ernestWarwas, Zales0123)
This PR was merged into the 1.12 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.12 <!-- 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                                                          |

This pull request resolves the problem of redirecting to the not filtered page after eg. deleting the product or returning to page after editing some of resources by clicking cancel on update page.

<!--
 - Bug fixes must be submitted against the 1.10 or 1.11 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
-------

364e6a60ee [Behat] Added scenarios
b4b3a10ec7 Logic implementation
7d1c5004f4 RedirectHandler decorated
31641e22e4 removed unused contexts
feb7bd9811 [Behat] Added new step to avoid problem with filtered page
8568ad3abe [Behat] pagination scenario covered
28a1f00a0f [Behat] Renamed scenarios and feature file
1f93c39d95 Privatize filter storage service
c7af482c91 Naming and code style changes
f595932b75 Add test for twig extension to ensure proper path generation
2022-07-21 14:18:45 +02:00
Mateusz Zalewski
f595932b75
Add test for twig extension to ensure proper path generation 2022-07-21 12:25:23 +02:00
Ernest Warwas
1f93c39d95
Privatize filter storage service 2022-07-20 23:29:46 +02:00
Ernest Warwas
28a1f00a0f
[Behat] Renamed scenarios and feature file
[Behat] Renamed scenarios and feature file

Removed checking if route is sylius route
2022-07-20 15:02:31 +02:00
Ernest Warwas
8568ad3abe
[Behat] pagination scenario covered
[Behat] pagination scenario covered

[Behat] pagination scenario covered

[Behat] pagination scenario covered

[Behat] pagination scenario covered

[Behat] pagination scenario covered

check if route has additional parameters

remove unused declaration of service

remove unused declaration of service

reverted changes

renamed scenario

after review fixes
2022-07-20 14:51:15 +02:00
Ernest Warwas
feb7bd9811
[Behat] Added new step to avoid problem with filtered page
[Behat] Added new step to avoid problem with filtered page

fixes

changed to new step in scenario

merge parameters and redirect to route directly
2022-07-19 20:36:56 +02:00
Ernest Warwas
7d1c5004f4
RedirectHandler decorated
RedirectHandler decorated

check if page is opened
2022-07-19 20:36:37 +02:00
Jan Goralski
71cb4665ed
Validation of requesting an admin's password reset token 2022-07-19 13:21:32 +02:00
Ernest Warwas
b4b3a10ec7
Logic implementation
Logic implementation

fix failing builds

failing builds fix
2022-07-19 12:58:12 +02:00
Ernest Warwas
364e6a60ee
[Behat] Added scenarios
[Behat] Add scenario

[Behat] new scenario added
2022-07-19 12:58:12 +02:00
Jan Goralski
720b267936
Allow requesting password reset token with a non existent admin email 2022-07-18 09:31:20 +02:00
Grzegorz Sadowski
8d1d6d931e
feature #14138 [Admin][UI] Sending administrator's password reset email (jakubtobiasz)
This PR was merged into the 1.12 branch.

Discussion
----------

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

Continuation of #14128.

What I've managed to done:
- Add `Forgot password?` button on Admin Panel login page
- <img width="611" alt="CleanShot 2022-07-07 at 9 23 57@2x" src="https://user-images.githubusercontent.com/80641364/177855856-a03376c2-77e4-44c8-b8f0-bab324b3256f.png">
- Add request admin's password reset page
- <img width="687" alt="CleanShot 2022-07-07 at 9 24 08@2x" src="https://user-images.githubusercontent.com/80641364/177855877-45c4b510-0100-4eae-a359-56e498b413ed.png">
- Add tests checking if the correct version of email is send for both API and UI part

And.. flash message 💃🏻.
<img width="593" alt="CleanShot 2022-07-07 at 9 25 20@2x" src="https://user-images.githubusercontent.com/80641364/177856062-7b0ea4ab-be35-4281-ba0d-0e02b23f78aa.png">


Commits
-------

cd813cdb15 Define behaviors for Sending an administrator's password reset request from UI
1b2750ba01 Add RequestPasswordReset page
9896fcbd59 Add handling requested password request sent from UI
3a619f5b4c Add tests checking if the correct email is sent for both Admin and Api bundles
25cbe7482d Add "Forgot password?" button on the login page to Admin Panel
7cce221550 Change the text searched for while asserting if email has been sent
6cd26878cc Add request password reset button on Admin Panel login page
4fd9cf680e Remove redundant making services public and reorder composer packages
6bdd9e97bb Rename password reset related actions
0f1be3f5b5 Allow to define redirect route from routes declaration
3deb9dfcb3 Remove redundant action test
cff5044e92 Add handling sylius redirect parameter's array form
6f5bf103fd Rename RenderResetPasswordPageAction to RenderRequestPasswordResetPageAction
e180c547d7 Rename RequestPasswordResetType block prefix
5c55fe4825 Update block priorities in template events
aff5e06ee8 Add information about required changes in security.yaml to UPGRADE files
2022-07-18 08:43:27 +02:00
Jakub Tobiasz
cd813cdb15 Define behaviors for Sending an administrator's password reset request from UI 2022-07-07 21:15:37 +02:00
Jan Goralski
4246bda8c6
Add admin's side password reset 2022-07-07 16:16:58 +02:00
Jan Goralski
b2c36834fd
Add administrator password reset api tests 2022-07-07 12:18:08 +02:00
Jakub Tobiasz
7bb47c1cc4 Add missing steps for sending an administrator's password reset request 2022-07-06 10:37:43 +02:00
Jakub Tobiasz
926352a1a0
Improve the wording of the behat scenario
Co-authored-by: Adam Kasperczak <adamkasperczak123@gmail.com>
2022-07-05 13:39:17 +02:00
Jakub Tobiasz
e6b86742a8 Change the body of scenario covering resetting the password twice 2022-07-05 13:26:30 +02:00
Jakub Tobiasz
107a10d36e Improve Admin Password Reset scenarios 2022-07-04 14:19:00 +02:00
Jakub Tobiasz
b2e6197090 Add scenarios for Admin Password reset feature 2022-07-04 13:28:00 +02:00
Ferror
47ac3b0c32 [maintenance]Prepare postgresql pipeline by making behat scenarios de-case-sensitive 2022-06-03 10:37:44 +02:00
Łukasz Chruściel
7d40d80684
minor #13759 [Behat] Use "When" for user actions where possible (coldic3)
This PR was merged into the 1.10 branch.

Discussion
----------

| Q               | A
| --------------- | -----
| Branch?         | 1.10
| Bug fix?        | no
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | mentioned in https://github.com/Sylius/Sylius/pull/13731#discussion_r821045993
| License         | MIT

As far as "I want to..." statement is a kind of user action the step should be 'When'.

Commits
-------

984488d94b [Behat] Use "When" for user actions where possible
2022-03-14 17:18:50 +01:00
Kevin Kaniaburka
984488d94b [Behat] Use "When" for user actions where possible 2022-03-11 09:20:29 +01:00
Grzegorz Sadowski
5dee3dc656
[Behat] Add scenarios for securing access to account and dashboard after logging out 2022-03-07 15:43:28 +01:00
SirDomin
d5229f52f9
clean up 2021-04-14 12:05:02 +02:00
SirDomin
5a195777aa
add localeAwareListener, behats 2021-04-13 12:36:41 +02:00
SirDomin
14ce7a369a
tests added 2021-04-07 08:33:35 +02:00
Kamil Kokot
8a9035bde3
Merge branch '1.7'
* 1.7:
  use default value of get in Request
  behat tests for impersonate user in new tab
  impersonate user in new tab
  Update features/locale/redirect_to_default_locale.feature
  Update features/locale/redirect_to_default_locale.feature
  update behat tests
  behat tests for locale redirect
  redirect to default locale
  make taxon comparable
2020-04-07 13:30:38 +02:00
Olivier ALLAIN
ae28e055d1
behat tests for impersonate user in new tab 2020-04-07 12:52:50 +02:00
Mateusz Zalewski
2acaaa51b9
[API] Test logging in as Admin 2020-03-17 15:14:24 +01:00
Adam Kasperczak
9b0c121cb7
improve order context 2020-02-10 08:38:42 +01:00