-
Notifications
You must be signed in to change notification settings - Fork 25
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
Migrate button vdiff tests #3949
Conversation
Thanks for the PR! 🎉 We've deployed an automatic preview for this PR - you can see your changes here:
|
a58785c
to
25b2ac7
Compare
[ | ||
{ category: 'default-icon', template: html`<d2l-button-subtle icon="tier1:bookmark-hollow" text="Subtle Button"></d2l-button-subtle>` }, | ||
{ category: 'default-icon-right', template: html`<d2l-button-subtle icon="tier1:chevron-down" text="Subtle Button" icon-right></d2l-button-subtle>` }, | ||
{ category: 'slim-icon', template: html`<d2l-button-subtle slim icon="tier1:bookmark-hollow" text="Subtle Button"></d2l-button-subtle>` }, | ||
{ category: 'slim-icon-right', template: html`<d2l-button-subtle slim icon="tier1:chevron-down" text="Subtle Button" icon-right></d2l-button-subtle>` } | ||
].forEach(({ category, template }) => { | ||
|
||
describe(category, () => { | ||
[ | ||
{ name: 'normal' }, | ||
{ name: 'rtl', rtl: true } | ||
].forEach(({ action, name, rtl }) => { | ||
it(name, async() => { | ||
const elem = await fixture(template, { rtl }); | ||
if (action) await action(elem); | ||
await expect(elem).to.be.golden(); | ||
}); | ||
}); | ||
}); | ||
}); |
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.
I was getting too confused with all the new tests and wanted to make sure we didn't miss properly renaming any of the old ones. I'd like to merge this like this, and then immediately put up a PR that removes this block and uncomments the tests above, giving a set of net new goldens to judge
Co-authored-by: github-actions <[email protected]>
🎉 This PR is included in version 2.142.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
TA178549: button and icons
Largely the same as the initial rewrite in #3610 with some minor tweaks
Final Report: https://vdiff.d2l.dev/BrightspaceUI/core/f0a05037a11723c977fe7bc75225ae40b336933b/2023-08-30_22-04-52/report/