-
-
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
[Behat][API] Browsing channels using their default locales #13823
[Behat][API] Browsing channels using their default locales #13823
Conversation
coldic3
commented
Apr 5, 2022
•
edited
Loading
edited
Q | A |
---|---|
Branch? | master |
Bug fix? | no |
New feature? | no |
BC breaks? | no |
Deprecations? | no |
Related tickets | |
License | MIT |
70449fb
to
8788d4c
Compare
8788d4c
to
63a0f91
Compare
e3e96b8
to
d0c42b1
Compare
d0c42b1
to
182a228
Compare
182a228
to
7d7f97c
Compare
And I should be able to shop using the "norweski (Norwegia)" locale | ||
And I should not be able to shop using the "angielski (Stany Zjednoczone)" locale |
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.
These ones should also be in English to make steps consistent
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.
The tricky part here is that we have a non-polish locale with polish translation. So then I would have to do something like :localNameInPolishLocale
🤔
Is :localNameInPolishLocale
ok in your opinion?
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.
I did :localeNameInCurrentLocale
so :localeNameInItsLocale
is now redundant 🙂
c74f091
to
2b45a65
Compare
2b45a65
to
ae9d8d6
Compare
18d5d9f
to
64f290d
Compare
64f290d
to
a086141
Compare
@@ -75,6 +75,9 @@ public function iCreateNewChannel(string $channelName): void | |||
*/ | |||
public function iVisitChannelHomepage(ChannelInterface $channel): void | |||
{ | |||
$this->sharedStorage->set('hostname', $channel->getHostname()); | |||
$this->sharedStorage->set('locale', $channel->getDefaultLocale()); |
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.
$this->sharedStorage->set('locale', $channel->getDefaultLocale()); | |
$this->sharedStorage->set('current_locale', $channel->getDefaultLocale()); |
?
- sylius.behat.context.api.shop.channel | ||
- sylius.behat.context.api.shop.cart |
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.
It can be in alphabetical order
Thanks, Kevin! 🥇 |
…nd handling multiple locales (GSadee) This PR was merged into the 1.12-dev branch. Discussion ---------- | Q | A | --------------- | ----- | Branch? | master | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Related tickets | after #13708, similar to #13823 | License | MIT <!-- - 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 ------- d6bd175 [Behat] Add possibility for removing key from shared storage dfb008e [API][Shop][Behat] Implement scenarios for switching and handling multiple locales b6f2ce5 [API][Shop][Behat] Implement scenarios for browsing products in different than default locale