-
Notifications
You must be signed in to change notification settings - Fork 168
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-158473: CCD Suggested Card [Merch card] #2927
Conversation
Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch and validate page speed.
Commits
|
libs/features/mas/web-components/test/merch-card.ccd-suggested.test.html.js
Outdated
Show resolved
Hide resolved
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## stage #2927 +/- ##
==========================================
- Coverage 96.37% 96.34% -0.03%
==========================================
Files 243 245 +2
Lines 55122 55458 +336
==========================================
+ Hits 53122 53432 +310
- Misses 2000 2026 +26 ☔ 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. |
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.
more or less same comments as i did for the other PR ;)
libs/features/mas/web-components/src/variants/ccd-suggested.css.js
Outdated
Show resolved
Hide resolved
@Axelcureno I noticed that you use |
Yes, we talked about this item on a previous tech discussion and agreed to reuse background-image to avoid using multiple models in Odin. |
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.
Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit
eslint
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.
🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'expect' is defined but never used.
import { expect } from '@esm-bundle/chai'; |
🚫 [eslint] <spaced-comment> reported by reviewdog 🐶
Expected exception block, space or tab after '/*' in comment.
milo/test/blocks/notification/notification.test.js
Lines 30 to 94 in 619f690
/*describe('banner notifications (default)', () => { | |
it('has a heading-m', () => { | |
const heading = notifs[0].querySelector('.heading-m'); | |
expect(heading).to.exist; | |
}); | |
it('has a body-m', () => { | |
const body = notifs[0].querySelector('.body-m'); | |
expect(body).to.exist; | |
}); | |
it('has CTAs', () => { | |
const ctas = notifs[0].querySelector('.action-area > a'); | |
expect(ctas).to.exist; | |
}); | |
it('has an image', () => { | |
const img = notifs[0].querySelector('.foreground .image img'); | |
expect(img).to.exist; | |
}); | |
it('supports a bottom border', () => { | |
const border = notifs[2].querySelector(':scope > .border'); | |
expect(border).to.exist; | |
}); | |
it('has a cdt', () => { | |
expect(notifs[15].querySelectorAll('.timer-label')).to.have.lengthOf(1); | |
}); | |
}); | |
describe('ribbon notifications', () => { | |
let ribbons; | |
beforeEach(() => { | |
ribbons = [...notifs].filter((e) => e.classList.contains('ribbon')); | |
}); | |
it('supports multiple icons', () => { | |
const icons = ribbons[0].querySelectorAll('.icon-area picture'); | |
expect(icons.length).to.be.greaterThan(1); | |
}); | |
it('has large buttons by default', () => { | |
const btn = ribbons[0].querySelector('a.con-button'); | |
expect(btn.classList.contains('button-l')).to.be.true; | |
}); | |
it('can be closed', () => { | |
const close = ribbons[0].querySelector('button.close'); | |
close.dispatchEvent(new MouseEvent('click')); | |
expect(close.closest('.notification').style.display).to.equal('none'); | |
}); | |
}); | |
describe('pill notifications', () => { | |
let pills; | |
beforeEach(() => { | |
pills = [...notifs].filter((e) => e.classList.contains('pill')); | |
}); | |
it('supports variant without a close button', () => { | |
const close = pills[2].querySelector('button.close'); | |
expect(close).to.not.exist; | |
}); | |
it('has large buttons by default', () => { | |
const btn = pills[0].querySelector('a.con-button'); | |
expect(btn.classList.contains('button-l')).to.be.true; | |
}); | |
it('can be closed', () => { | |
const close = pills[0].querySelector('button.close'); | |
close.dispatchEvent(new MouseEvent('click')); | |
expect(close.closest('.notification').style.display).to.equal('none'); | |
}); | |
});*/ |
🚫 [eslint] <spaced-comment> reported by reviewdog 🐶
Expected space or tab before '*/' in comment.
milo/test/blocks/notification/notification.test.js
Lines 30 to 94 in 619f690
/*describe('banner notifications (default)', () => { | |
it('has a heading-m', () => { | |
const heading = notifs[0].querySelector('.heading-m'); | |
expect(heading).to.exist; | |
}); | |
it('has a body-m', () => { | |
const body = notifs[0].querySelector('.body-m'); | |
expect(body).to.exist; | |
}); | |
it('has CTAs', () => { | |
const ctas = notifs[0].querySelector('.action-area > a'); | |
expect(ctas).to.exist; | |
}); | |
it('has an image', () => { | |
const img = notifs[0].querySelector('.foreground .image img'); | |
expect(img).to.exist; | |
}); | |
it('supports a bottom border', () => { | |
const border = notifs[2].querySelector(':scope > .border'); | |
expect(border).to.exist; | |
}); | |
it('has a cdt', () => { | |
expect(notifs[15].querySelectorAll('.timer-label')).to.have.lengthOf(1); | |
}); | |
}); | |
describe('ribbon notifications', () => { | |
let ribbons; | |
beforeEach(() => { | |
ribbons = [...notifs].filter((e) => e.classList.contains('ribbon')); | |
}); | |
it('supports multiple icons', () => { | |
const icons = ribbons[0].querySelectorAll('.icon-area picture'); | |
expect(icons.length).to.be.greaterThan(1); | |
}); | |
it('has large buttons by default', () => { | |
const btn = ribbons[0].querySelector('a.con-button'); | |
expect(btn.classList.contains('button-l')).to.be.true; | |
}); | |
it('can be closed', () => { | |
const close = ribbons[0].querySelector('button.close'); | |
close.dispatchEvent(new MouseEvent('click')); | |
expect(close.closest('.notification').style.display).to.equal('none'); | |
}); | |
}); | |
describe('pill notifications', () => { | |
let pills; | |
beforeEach(() => { | |
pills = [...notifs].filter((e) => e.classList.contains('pill')); | |
}); | |
it('supports variant without a close button', () => { | |
const close = pills[2].querySelector('button.close'); | |
expect(close).to.not.exist; | |
}); | |
it('has large buttons by default', () => { | |
const btn = pills[0].querySelector('a.con-button'); | |
expect(btn.classList.contains('button-l')).to.be.true; | |
}); | |
it('can be closed', () => { | |
const close = pills[0].querySelector('button.close'); | |
close.dispatchEvent(new MouseEvent('click')); | |
expect(close.closest('.notification').style.display).to.equal('none'); | |
}); | |
});*/ |
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.
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.
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.
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.
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.
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.
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.
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.
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.
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.
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.
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.
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.
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.
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.
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.
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.
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.
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.
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.
Introduces Creative Cloud Desktop 'Suggested' Card to the list of web components as part of M@S v2 initiative.
LTR:
RTL:
Dark theme (RTL):
Notes:
This card is not part of Milo block library and is part of a CCD integration.
To test this card, run npm run test from web-components folder and select debug, then select the option test/merch-card.ccd-suggested.test.html to see the 3 variations (top to bottom of screenshot): standard, wide strip background and small strip background.
Resolves: MWPW-158473
URL for testing: