-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
13865 safari block cookies breaks javascript scripts #25324
13865 safari block cookies breaks javascript scripts #25324
Conversation
Hi @raulvOnestic91. Thank you for your contribution
For more details, please, review the Magento Contributor Guide documentation. |
hello @DrewML @melnikovi I not able to see what is wrong in the Static Tests, the details page is not charging. Could you tell me what is the error please? |
@magento run all tests |
1 similar comment
@magento run all tests |
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.
Please take a look at failing static tests.
Hi @krzksz, thank you for the review.
|
Hey @magento-engcom-team, I am not able to add a tests label as I am not sure if it is possible to simulate disabled cookies in MFTF. |
Hi @raulvOnestic91, @krzksz. In this case, first of all, I think we should create a separate class that will wrap the native navigator class.
|
expect($.fn.cookieStatus).toBeDefined(); | ||
}); | ||
|
||
it('verify that modal does not shows when cookies are supported', function () { |
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.
Please change to does not show a modal when cookies are supported
.
window.navigator = navigator; | ||
}); | ||
|
||
it('verify initialization cookieStatus widget', function () { |
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.
Please change to defines cookieStatus widget
.
Hi @krzksz, thank you for the review. |
✔️ QA Passed |
95b000e
to
14112c0
Compare
Failed functional test not related to the changes in this PR, test fails on 2.4-develop branch. |
Hi @raulvOnestic91, thank you for your contribution! |
Create a popup to warn that the cookies are blocked in the browser.
Description (*)
I fixed this PR creating a js that checks if the navigator has the cookies blocked and warn with a popup that the behavior could be wrong.
Fixed Issues (if relevant)
Manual testing scenarios (*)
Questions or comments
Contribution checklist (*)