-
-
Notifications
You must be signed in to change notification settings - Fork 707
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
Fix open Contact tab from "customers only" message #11789
Fix open Contact tab from "customers only" message #11789
Conversation
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.
Nice one ! Thanks for your help.
I noticed you merged master into your branch, we prefer rebasing the dev branch on master to keep the git history nice an clean.
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.
Thank you!
That code seems quite wordy, but I see that it's the same method as used elsewhere. Hopefully one day we might be able to simplify it..
cbabc7f
to
eda60af
Compare
@rioug Sorry, I have clicked on the github page that I want to rebase on master... Now I have rebased locally and force pushed, so now there is only one commit |
@dacook you are right. We should not wait for refactoring. I added a another commit that solves this comment , mainly we do not need to use two methods, just Removed shop-tabs controllers since we can listen on Added test for cases: |
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.
Looks great ! thanks for cleaning that up 🙏
Object.defineProperty(window, "location", { | ||
value: new URL("http://example.com/#non_valid_panel"), | ||
configurable: true, |
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's a lot cleaner than the previous solution !
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.
Yea, no need to use mock
There are a couple of specs failing. |
@duleorlovic did you want to fix the failing specs? |
b61aaf4
to
bd05966
Compare
994d197
to
b844e09
Compare
Remove shop-tabs controllers since we can listen on `"data-action": "orderCycleSelected@window->tabs-and-panels#activateDefaultPanel"` Test for cases: * activate by clicking on tab * activateDefaultPanel on orderCycleSelected event * activateFromWindowLocationOrDefaultPanelTarget to activate tab based on achor in URL
b844e09
to
120e299
Compare
Sorry for late reply. I was thinking that there were som Flaky test, but I had to update some test case also. |
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.
Great, thank you!
Hi @duleorlovic, I have tested that
Here is a short video (covering only parts of the tests): Peek.2023-12-19.14-49.mp4I think this one ready to go! 🥳 |
What? Why?
We need stimulus attributes that will activate Contact tab
What should we test?
Release notes
Changelog Category (reviewers may add a label for the release notes):
The title of the pull request will be included in the release notes.
Dependencies
Documentation updates