generated from adobe/aem-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MWPW-168109, 166126 MEP Stage Batch (#3709)
* MWPW-168109: do not modify absolute path to a script hosted in DAM when using insertScript action (#3708) * MWPW-168109: do not modify absolute path to a script hosted in DAM when using insertScript action * wording change * Update libs/features/personalization/personalization.js Co-authored-by: Vivian A Goodrich <[email protected]> --------- Co-authored-by: Denys Fedotov <[email protected]> Co-authored-by: Vivian A Goodrich <[email protected]> * [MWPW-166126] Add new "updateAttribute" action to MEP (#3670) * Get last string, check for match, save as attribute. * Attribute update, working state. * Refactor, good state. * Parameter update refactor. * Unit testing. * Highlight updates. * Unit test update. * Code review updates. * Error log update. * Spacing fix. * PR update. * Update libs/features/personalization/personalization.js * unit test update --------- Co-authored-by: Vivian A Goodrich <[email protected]> Co-authored-by: Vivian A Goodrich <[email protected]> --------- Co-authored-by: Denys Fedotov <[email protected]> Co-authored-by: Denys Fedotov <[email protected]> Co-authored-by: Dave Linhart <[email protected]>
- Loading branch information
1 parent
5de9671
commit fd32858
Showing
5 changed files
with
162 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
test/features/personalization/mocks/actions/manifestUpdateAttribute.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{ | ||
"total": 5, | ||
"offset": 0, | ||
"limit": 5, | ||
"data": [ | ||
{ | ||
"action": "updateattribute", | ||
"selector": "marquee strong a href", | ||
"page filter (optional)": "", | ||
"param-newoffer=123": "", | ||
"chrome": "", | ||
"content": "https://www.google.com/" | ||
}, | ||
{ | ||
"action": "updateattribute", | ||
"selector": "marquee strong a href_osi", | ||
"page filter (optional)": "", | ||
"param-newoffer=123": "", | ||
"chrome": "", | ||
"content": "new-parameter" | ||
}, | ||
{ | ||
"action": "updateattribute", | ||
"selector": "marquee em a new-attribute", | ||
"page filter (optional)": "", | ||
"param-newoffer=123": "", | ||
"chrome": "", | ||
"content": "added-attribute" | ||
}, | ||
{ | ||
"action": "updateattribute", | ||
"selector": "marquee h2 class", | ||
"page filter (optional)": "", | ||
"param-newoffer=123": "", | ||
"chrome": "", | ||
"content": "added-class" | ||
}, | ||
{ | ||
"action": "updateattribute", | ||
"selector": ".second-marquee-title strong a href", | ||
"page filter (optional)": "", | ||
"param-newoffer=123": "", | ||
"chrome": "", | ||
"content": "thisshouldfail" | ||
} | ||
], | ||
":type": "sheet" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters