-
Notifications
You must be signed in to change notification settings - Fork 175
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
MWPW-158537 : Upgrade Universal Nav to version 1.4 #3367
base: stage
Are you sure you want to change the base?
Conversation
Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch and validate page speed.
|
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## stage #3367 +/- ##
=======================================
Coverage 96.47% 96.47%
=======================================
Files 255 255
Lines 59253 59265 +12
=======================================
+ Hits 57163 57176 +13
+ Misses 2090 2089 -1 ☔ View full report in Codecov by Sentry. |
This pull request is not passing all required checks. Please see this discussion for information on how to get all checks passing. Inconsistent checks can be manually retried. If a test absolutely can not pass for a good reason, please add a comment with an explanation to the PR. |
This PR has not been updated recently and will be closed in 7 days if no action is taken. Please ensure all checks are passing, https://github.com/orgs/adobecom/discussions/997 provides instructions. If the PR is ready to be merged, please mark it with the "Ready for Stage" label. |
This PR is currently in the |
@@ -74,17 +74,27 @@ export const CONFIG = { | |||
name: 'profile', | |||
attributes: { | |||
isSignUpRequired: false, | |||
messageEventListener: (event) => { | |||
const { name, payload, executeDefaultAction } = event.detail; | |||
if (name === 'System' && payload.subType === 'AppInitiated') { |
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.
We can fail fast here
if (name !== 'System') return;
switch (payload.subType) {
case 'AppInitiated':
// code
case 'SignOut':
// code
default:
// code
}
executeDefaultAction(); | ||
} | ||
if (name === 'System' && payload.subType === 'ProfileSwitch') { | ||
executeDefaultAction().then((profile) => { |
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.
Is executeDefaultAction
always a Promise?
Upgrade Universal Nav to version 1.4
Resolves: MWPW-158537
Test URLs: