[Behat][Taxation] Refactor shop scenarios to reduce js tags#17822
[Behat][Taxation] Refactor shop scenarios to reduce js tags#17822Rafikooo merged 1 commit intoSylius:2.0from
Conversation
GSadee
commented
Apr 2, 2025
| Q | A |
|---|---|
| Branch? | 2.0 |
| Bug fix? | no |
| New feature? | no |
| BC breaks? | no |
| Deprecations? | no |
| Related tickets | continuation of #17818 and #17819 |
| License | MIT |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
❌ Preview Environment deleted from BunnyshellAvailable commands:
|
| And I add product "Symfony Mug" to the cart | ||
| Given I added product "PHP T-Shirt" to the cart | ||
| And I added product "Symfony Mug" to the cart | ||
| And I check the details of my cart |
There was a problem hiding this comment.
| And I check the details of my cart | |
| When I check the details of my cart |
| And I add 4 products "Symfony Mug" to the cart | ||
| Given I added 3 products "PHP T-Shirt" to the cart | ||
| And I added 4 products "Symfony Mug" to the cart | ||
| And I check the details of my cart |
There was a problem hiding this comment.
| And I check the details of my cart | |
| When I check the details of my cart |
| * @Given /^I have ("[^"]+" variant of product "[^"]+") in the (cart)$/ | ||
| * @Given /^I have ("[^"]+" variant of this product) in the (cart)$/ | ||
| */ | ||
| #[Given('/^I added ("[^"]+" variant of product "[^"]+") to the (cart)$/')] |
There was a problem hiding this comment.
Why the sudden change from have to added?
There was a problem hiding this comment.
I proposed this change because IMO it’s more precise — it clearly indicates that I, as the actor, added the product. Given I have could imply that the product was added in some other way.
|
I believe these minor improvements can be made in the next PR. |