-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Cart][Behat] Logging customer's cart #4044
The head ref may contain hidden characters: "apply-correct-taxes\u2013based-on-customers-data"
[Cart][Behat] Logging customer's cart #4044
Conversation
@Zales0123 please rebase. |
eb705b3
to
85045fe
Compare
@michalmarcinkowski done ;) And awaiting review, of course. |
@@ -68,5 +68,6 @@ default: | |||
taxCategoryRepository: "@sylius.repository.tax_category" | |||
zoneRepository: "@sylius.repository.zone" | |||
|
|||
- Sylius\Behat\Context\Ui\UserContext |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's put : ~
at the end to be sure that context class will be interpreted as a key.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
8ee66ea
to
610b1a3
Compare
101ad65
to
23e0ef1
Compare
23e0ef1
to
362e97e
Compare
And product "PHP T-Shirt" belongs to "Clothes" tax category | ||
And store ships everything for free | ||
And store allows paying offline | ||
And there is user "john@example.com" identified by "password123", with "Australia" as shipping country |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we can move this to separate step:
And user/customer "john@example.com" has default shipping address to "Australia"
I did not review everything yet because I'd like to start a quick discussion:
E-Mail and password are irrelevant when we are logged in already. What do you think? I know this is something we can add in separate PR but I wanted to start discussion already. Btw. something I just realized, from scenarios it is perfectly clear what is going on and they are not coupled to UI just like we wanted, but from UI perspective we are checking the "Cart Summary View" right now. We need to remember there is "Checkout Summary View" at the end and we should ensure that correct amounts are displayed there as well. Something to think about as we progress. |
For checkout the "Checkout Summary View" I would say we could have a separate scenarios for verifying that "Checkout Summary View" displays the same as "Cart Summary View". This way we will not need to check it on every single scenario. |
|
UPDATE IMO in the feature you linked to we shouldn't even be logged in, as it doesn't change anything and we can validate that guest cart works properly :) |
@michalmarcinkowski Agreed 👍 |
These two steps are also irrelevant since we do not even start a checkout there. |
As we can see, first feature must have some childhood disease 😄
Am I missing sth? |
But let's merge this and do it all in a separate PRs. /cc @pjedrzejewski |
…customers-data [Cart][Behat] Logging customer's cart
Agreed about separate PR. 👍 Thank you Mateusz! |
Based on #4035. Again, please, don't review this until previous PR's will be merged.